Skip to content

Commit

Permalink
notification: improve password reset notifications
Browse files Browse the repository at this point in the history
* Improves reset instruction notification.
* Adds a custom template for reset notice notification.
* Closes rero#1387.

Co-Authored-by: Alicia Zangger <alicia.zangger@rero.ch>
  • Loading branch information
Alicia Zangger committed Jan 5, 2021
1 parent 2979cdf commit 4a2dfe6
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@

#}

<p><a href="{{ reset_link.replace('/api', '') }}">{{ _('Click here to reset your password') }}</a></p>
<p>{{ _('Dear patron') }},</p>
<p>{{ _('Someone requested that the password for your RERO ID account be reset.') }}</p>
<p><a href="{{ reset_link.replace('/api', '') }}">{{ _('Reset my password') }}</a></p>
<p>{{ _('If you didn't request this, you can ignore this e-mail. Your password won't change until you create a new password.') }}</p>
<p>{{ _('Best regards') }}</p>
<p>{{ _('Your library') }}</p>
<p>http:://ils.test.rero.ch/</p>
16 changes: 14 additions & 2 deletions rero_ils/theme/templates/security/email/reset_instructions.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,15 @@
{{ _('Click the link below to reset your password:') }}

{{ reset_link.replace('/api', '') }}
SUBJECT: RERO ID password reset

{{ _('Dear patron') }},

{{ _('Someone requested that the password for your RERO ID account be reset.') }}

{{ _('Reset my password:') }} {{ reset_link.replace('/api', '') }}

{{ _('If you didn't request this, you can ignore this e-mail. Your password won't change until you create a new password.') }}

{{ _('Best regards') }}

{{ _('Your library') }}
http:://ils.test.rero.ch/

0 comments on commit 4a2dfe6

Please sign in to comment.