Comments (8)
-
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.
-
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 haveusername
andpassword
keys in the request body.
from usermanager.
- From your description, I understood that you can disable email confirmation
- When does this authentication happen?
from usermanager.
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.
@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.
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.
@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.
I'll take a look at this.
from usermanager.
Fixed in 8f623b5
from usermanager.
Related Issues (18)
- Update Documentation for Vapor 3
- JWT HOT 8
- Make User registraion public/private HOT 2
- Suggestion: Add third-party oauth methods HOT 12
- GPDR Routes
- Database Credentials should be environment variables HOT 1
- error: swift build
- PEM_read_bio_PrivateKey - Unexpectedly found nil while unwrapping an Optional value HOT 2
- Build Error
- Swift Tools HOT 4
- Run production-tests
- Dockerfile adjustments HOT 1
- Errors are not very informative
- Email-code in API response
- Sendgrid integration not quite functional
- Allow other services to integrate HOT 2
- Admin-Functions
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from usermanager.