Giter Club home page Giter Club logo

Comments (8)

calebkleveter avatar calebkleveter commented on May 27, 2024
  1. This is because the service requires a user confirms themselves through a link in an email that is sent to them after they register. Once they confirm themselves, then they can login and get the access token.

  2. Though it looks like you need to be authenticated to login to the service, the login route is actually using the JWTAuthenticatableMiddleware to login the user when the route is called. The request must have username and password keys in the request body.

from usermanager.

dev4jam avatar dev4jam commented on May 27, 2024
  1. From your description, I understood that you can disable email confirmation
  2. When does this authentication happen?

from usermanager.

calebkleveter avatar calebkleveter commented on May 27, 2024

Correct, you can disable it. However, this makes it so an existing admin user has to create accounts for people.

The authentication happens before the route handler is run in the middleware chain in JWTAuthenticatableMiddleware.

from usermanager.

proggeramlug avatar proggeramlug commented on May 27, 2024

@dev4jam Would you want users to just register without any validation? (neither email nor admin)
I'm curious if there is a use-case for this.

from usermanager.

dev4jam avatar dev4jam commented on May 27, 2024

I have a real use-case: we are registering influencer on our platform for them. We just create an account with their email address. Not sure if admin confirmation should work in this case.

from usermanager.

proggeramlug avatar proggeramlug commented on May 27, 2024

@calebkleveter Do you think we can somehow rearrange the config so that this case would work too? I agree that there are cases for it though it's not very common anymore.

from usermanager.

calebkleveter avatar calebkleveter commented on May 27, 2024

I'll take a look at this.

from usermanager.

calebkleveter avatar calebkleveter commented on May 27, 2024

Fixed in 8f623b5

from usermanager.

Related Issues (18)

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.