-
Notifications
You must be signed in to change notification settings - Fork 1.9k
fix: Update password reset email to include token additionally #6164
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
Conversation
| send_email_with_action(user, PASSWORD_RESET_AND_VERIFY, app_name=get_settings()['app_name'], link=link) | ||
| else: | ||
| send_email_with_action(user, PASSWORD_RESET, app_name=get_settings()['app_name'], link=link) | ||
| send_email_with_action(user, PASSWORD_RESET, app_name=get_settings()['app_name'], link=link, token=user.reset_password) |
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.
line too long (131 > 120 characters)
Codecov Report
@@ Coverage Diff @@
## development #6164 +/- ##
===============================================
+ Coverage 66.18% 66.21% +0.02%
===============================================
Files 288 288
Lines 14460 14460
===============================================
+ Hits 9571 9575 +4
+ Misses 4889 4885 -4
Continue to review full report at Codecov.
|
app/api/helpers/system_mails.py
Outdated
| 'message': ( | ||
| u"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>" | ||
| u"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>" + | ||
| " Or copy this token to your Eventyay App: {token} " |
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.
paste this in your Eventyay App
app/api/helpers/system_mails.py
Outdated
| 'message': ( | ||
| u"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>" | ||
| u"Please use the following link to reset your password.<br> <a href='{link}' target='_blank'>{link}</a>" + | ||
| " Or copy this token to your Eventyay App: {token} " |
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.
I'm not confident if we should say "Eventyay" as specific on email template. May be we can use {app_name} here?
Fixes #6151
Short description of what this resolves:
Update password reset email should include token for android app users.
Checklist
developmentbranch.