You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Login should check that the user is verified before producing an auth token. This means that it should return an appropriate responce when a user is not verified. Registeration will not allow immediate login because now an auth token is not produced. An verification email is sent instead.
The User Model shall hold a new boolean property that instructs if a user is verified or not. This property is false on creation and is change to true once the user is verified (by the verification link which was sent by SMTP).
Estimated time: 4 hours
The text was updated successfully, but these errors were encountered:
GET /users/verify/:token - this route is used to verify an
verification email which is sent to new user mailbox
POST /users/verify - this route is used to REsend a verification
mail. the request body should contain the requesting user
credentials.
GET * - this is a default route that sohuld handle invalid
requests (returns 404).
Modified Routes: Register and Login - from now on auth token will not be
created unless the user status is verified. Registeration will send and
verification mail to the new registered user. The Login route will first
check that the user is verified before creating an auth token.
User Schema: New property add - isVerified to distiguish between verified
and unverified accounts.
issues: #209#210#211#212
Login should check that the user is verified before producing an auth token. This means that it should return an appropriate responce when a user is not verified.
Registeration will not allow immediate login because now an auth token is not produced. An verification email is sent instead.
The User Model shall hold a new boolean property that instructs if a user is verified or not. This property is false on creation and is change to true once the user is verified (by the verification link which was sent by SMTP).
Estimated time: 4 hours
The text was updated successfully, but these errors were encountered: