[#164046247] Users can verify their accounts #23
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Whenever users create an account, it is good practice to have them verify their email addresses so we can be sure that the users are indeed real and that they own the accounts they used for registration. This feature implements email verification by sending a JWT token to the user email address that should be decoded. If the token is valid, the token is decoded and the user is redirected to a callback URL that they provided when registering.
Type of change
How Has This Been Tested?
Checklist:
How can this be manually tested?
ft-email-verification-164046247
and install requirements by runningpip install -r requirements.txt
/api/token/
and pass in your username and email. If you pass in incorrect information, you should not be able to get a reset token. Only registered users can get a reset token. To verifiy the token, simply go to your email address and copy and paste the link in your browser. You should be redirected to the callback URL you providedPT
#164046247