Skip to content

Conversation

@prateekj117
Copy link
Member

Fixes #6151

Short description of what this resolves:

Update password reset email should include token for android app users.

Checklist

  • I have read the Contribution & Best practices Guide and my PR follows them.
  • My branch is up-to-date with the Upstream development branch.
  • The unit tests pass locally with my changes
  • I have added tests that prove my fix is effective or that my feature works
  • I have added necessary documentation (if appropriate)
  • All the functions created/modified in this PR contain relevant docstrings.

@auto-label auto-label bot added the fix label Jul 9, 2019
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)

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
Copy link

codecov bot commented Jul 9, 2019

Codecov Report

Merging #6164 into development will increase coverage by 0.02%.
The diff coverage is 90%.

Impacted file tree graph

@@               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
Impacted Files Coverage Δ
app/api/helpers/system_mails.py 100% <ø> (ø) ⬆️
app/api/auth.py 24.12% <90%> (ø) ⬆️
app/api/helpers/scheduled_jobs.py 24.8% <0%> (+3.19%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 068b18f...f4a9e91. Read the comment docs.

'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} "
Copy link
Member

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

'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} "
Copy link
Member

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?

@fossasia fossasia deleted a comment Jul 10, 2019
@iamareebjamal iamareebjamal merged commit 2bfa553 into fossasia:development Jul 10, 2019
iamareebjamal pushed a commit to iamareebjamal/open-event-server that referenced this pull request Aug 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Update password reset email to include token additionally

4 participants