forked from rero/rero-ils
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
notification: improve password reset notifications
* 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 13, 2021
1 parent
c6342df
commit e446e95
Showing
8 changed files
with
85 additions
and
6 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
13 changes: 11 additions & 2 deletions
13
rero_ils/theme/templates/security/email/reset_instructions.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,12 @@ | ||
{{ _('Click the link below to reset your password:') }} | ||
|
||
{{ reset_link.replace('/api', '') }} | ||
{%- if user.profile.first_name and user.profile.last_name %} | ||
<p>{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }},</p> | ||
{%- else %} | ||
<p>{{ _('Dear patron') }},</p> | ||
{%- endif %} | ||
<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>{{ user | lib_url }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{# -*- coding: utf-8 -*- | ||
|
||
RERO ILS | ||
Copyright (C) 2021 RERO | ||
Copyright (C) 2015-2018 CERN | ||
|
||
This program is free software: you can redistribute it and/or modify | ||
it under the terms of the GNU Affero General Public License as published by | ||
the Free Software Foundation, version 3 of the License. | ||
|
||
This program is distributed in the hope that it will be useful, | ||
but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
GNU Affero General Public License for more details. | ||
|
||
You should have received a copy of the GNU Affero General Public License | ||
along with this program. If not, see <http://www.gnu.org/licenses/>. | ||
|
||
#} | ||
|
||
{%- if user.profile.first_name and user.profile.last_name %} | ||
<p>{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }},</p> | ||
{%- else %} | ||
<p>{{ _('Dear patron') }},</p> | ||
{%- endif %} | ||
<p>{{ _('Your password has been successfully reset.') }}</p> | ||
<p>{{ _('Best regards') }}</p> | ||
<p>{{ _('Your library') }}</p> | ||
<p>{{ user | lib_url }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
{%- if user.profile.first_name and user.profile.last_name %} | ||
<p>{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }},</p> | ||
{%- else %} | ||
<p>{{ _('Dear patron') }},</p> | ||
{%- endif %} | ||
<p>{{ _('Your password has been successfully reset.') }}</p> | ||
<p>{{ _('Best regards') }}</p> | ||
<p>{{ _('Your library') }}</p> | ||
<p>{{ user | lib_url }}</p> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters