GithubHelp home page GithubHelp logo

[auth] inconsistency about nano HOT 2 CLOSED

apache avatar apache commented on August 27, 2024
[auth] inconsistency

from nano.

Comments (2)

PatrickHeneise avatar PatrickHeneise commented on August 27, 2024

Agree. Sorry, didn't have the time yet to continue on the issue.

from nano.

dscape avatar dscape commented on August 27, 2024

Yup please do submit a patch and tests if possible. Thank you
On Oct 31, 2011 6:51 PM, "tarantoga" <
[email protected]>
wrote:

The way it is implemented gives inconsistent results in the moment auth is
called with one of the arguments empty and when both arguments are filled
in but user can't be authenticated. In the first case we get back SUCCESS
and in the second we get proper result with ERROR with username or password
incorrect message. In my opinion this should return always error. The issue
here is this line in relax: if(cfg.user && cfg.pass)

Additionally if we have auth we also should have corresponding session
deleting function (unauth?). Even if it is very easy to achieve with relax
it would be more consistent to have it separately or maybe use auth with
empty params instead.

if you agree on this I can do necessary changes.

cheers,
Artur

Reply to this email directly or view it on GitHub:
#31

from nano.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.