Add forgot password functionality at /reset_password?code=...
For testing, first a mail needs to be sent (from support@hyperlog.io by default, can be changed in settings.py) from the sendResetPasswordMail mutation. In dev mode, if the mail fails to send, the mail content will be visible in the logs. It contains the link which can be used to reset the password.
I haven't added any CSS because I wasn't sure how it would need to be to compliment the frontend style.
It currently logs whether an email was successfully sent or not, like it logs username invalid when the username could not be found. Not sure if this will be an issue.
Changes:
/reset_password?code=...
For testing, first a mail needs to be sent (from
support@hyperlog.io
by default, can be changed in settings.py) from thesendResetPasswordMail
mutation. In dev mode, if the mail fails to send, the mail content will be visible in the logs. It contains the link which can be used to reset the password.I haven't added any CSS because I wasn't sure how it would need to be to compliment the frontend style.
Schema for the mutation:
It currently logs whether an email was successfully sent or not, like it logs
username invalid
when the username could not be found. Not sure if this will be an issue.