User POSTS to /v1/forgot-password
with body:
{
email: String
}
A random 32-byte email-verification nonce is created and saved the user record. The user record indicates:
XXX|old|old
Server sends an email to the user with the forgotPasswordNonce
.
Server responds 200 with JSON indicating to check email.
User POSTS /v1/account/password
with body:
{
username: String, username of the account
nonce: String, verification nonce
newPassword: String, new password
}
Server updates user record to indicate:
null|new|new