-
Notifications
You must be signed in to change notification settings - Fork 2
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Password reset function #221
Conversation
…r, crud and schema.
…eset-page is quirky though
…ntheses in the router. Sending requests through the form to the API works well, although there never seem to be any records for password resets stored in the db
f'Hi {full_name},\n\n' | ||
'You are receiving this email since a pasword reset has been requested for your tmeit account.\n\n' | ||
'If you did not make this request, please ignore this message.\n\n' | ||
f'You can reset your password by visiting <a href=\"localhost:8080/reset/{reset_token}\" target="_blank" rel="noreferrer noopener">tmeit.se/reset/{reset_token}</a>\n\n' |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
href should be changed to tmeit.se. Maybe we should add a environment variable for the current server URL, so that this works for both dev and prod.
email : email | ||
}; | ||
|
||
const xhr = new XMLHttpRequest(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can we use wretch? https://github.com/TMEIT/website/blob/master/front/src/app/api.js
|
||
const address = "/api/v1/reset/" + reset_token + "?email=" + email; | ||
|
||
const xhr = new XMLHttpRequest(); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
wretch here too?
…pes in comparisons, but it's somehow like records are never added to the database...
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
Terraform Lint/Plan ResultsTerraform Format and Style 🖌
|
No description provided.