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
This route will handle any "invalid" request.
It will return HTTP 404.
Note that this is a MUST in order for the server not to crash on various circumstances, such as email verification (if you don't belive me, you can check it yourself :-) ).
Estimated time: 0.5 hour.
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
This route will handle any "invalid" request.
It will return HTTP 404.
Note that this is a MUST in order for the server not to crash on various circumstances, such as email verification (if you don't belive me, you can check it yourself :-) ).
Estimated time: 0.5 hour.
The text was updated successfully, but these errors were encountered: