Closed mplekunov closed 1 year ago
At this point we don't support change of the email address. Probably will add it in some other PR.
I think if we update the username or email address, it should require reverification. Don't need to add it now, but pls keep in mind if you end up allowing change of email at a later point
So here it is, SendGrid email verification.
How it works:
Several new endpoints have been added:
Verification codes are randomly generated and are always within 6 digits. Verification codes last 15 min by default, after that they will be deleted from the memory and client will be required to request verification code again through send-verification-code endpoint.
Behaviors have been updated for Login and Register endpoints.
Login endpoint now checks if account verified or not, if it's not, it returns an error code with appropriate message. Register endpoint now sends verification code on registration of new account.
At this point we don't support change of the email address. Probably will add it in some other PR.