Add Password Recovery and Email Change #4
Labels
No labels
bug
documentation
duplicate
enhancement
good first issue
help wanted
invalid
question
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Valentin/vtaskr-backend#4
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Add a process to recover a forgotten password :
1- add an endpoint to demand a new password with an email
2- endpoint respond only a 200 ok (no error here).
2- send an email with a hash
3- use hash to find user's demand
4- use endpoint to send hash, email and new password
5- if ok, the new password is set
And a process to change email securely.
1- add a endpoint to request email change
2- send an email to old email with a code 2FA like
3- send an email to new email with a hash
4- use endpoint to send new email with code and hash
5- if ok, the new email is set
All according to OWASP recommendations.