hyperlog-core / hyperlog-backend

Backend for hyperlog
0 stars 0 forks source link

Fix #69: Add forgot password functionality #97

Closed nikochiko closed 4 years ago

nikochiko commented 4 years ago

Changes:

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.

Schema for the mutation:

mutation sendResetPasswordMail(username: String!) {
  success: Boolean!
  errors: [String!]
}

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.

BrainBuzzer commented 4 years ago

I'll add the CSS stylings for this later