GithubHelp home page GithubHelp logo

user registration error about superlogin HOT 7 CLOSED

colinskow avatar colinskow commented on July 23, 2024
user registration error

from superlogin.

Comments (7)

colinskow avatar colinskow commented on July 23, 2024

Hi @neerajdixit , thank you for reporting this. It could be that the username and password need to be URL encoded first if they are using any non-url characters. Go into /node_modules/superlogin/lib/util.js, line 50 and change it to:

url = db.protocol + encodeURIComponent(db.user) + ':' + encodeURIComponent(db.password) + '@' + db.host;

Let me know if this fixes the problem. Otherwise I will do it your way, but that involves more code.

from superlogin.

colinskow avatar colinskow commented on July 23, 2024

But before you do that, go to /node_modules/superlogin/lib/dbauth/index.js, line 245 and change it to:

return BPromise.reject(err.text);

(remove JSON.parse) so we can know what the exact error is.

from superlogin.

neerajd12 avatar neerajd12 commented on July 23, 2024

what you suggested works perfectly and yeah the JSON.parse was a problem to get exact error that I forgot to mention.

thanks..

from superlogin.

colinskow avatar colinskow commented on July 23, 2024

OK, I will create a release with the fix.

from superlogin.

colinskow avatar colinskow commented on July 23, 2024

The error was an illegal character in the URL?

from superlogin.

colinskow avatar colinskow commented on July 23, 2024

Should be fixed in SuperLogin 0.4.2. Let me know if you have any further problems.

from superlogin.

neerajd12 avatar neerajd12 commented on July 23, 2024

thanks. I did have some special characters in the password.

from superlogin.

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.