-
Notifications
You must be signed in to change notification settings - Fork 11
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Updates password forgotten emails. * Closes #343. Co-Authored-by: Sébastien Délèze <sebastien.deleze@rero.ch>
- Loading branch information
Sébastien Délèze
committed
Aug 17, 2021
1 parent
e095fe1
commit 9b8338b
Showing
5 changed files
with
79 additions
and
14 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,31 @@ | ||
{# -*- coding: utf-8 -*- | ||
Swiss Open Access Repository | ||
Copyright (C) 2021 RERO | ||
Swiss Open Access Repository | ||
Copyright (C) 2021 RERO | ||
|
||
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 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. | ||
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/>. | ||
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 />. | ||
#} | ||
|
||
<p><a href="{{ reset_link.replace('/api', '') }}">{{ _('Click here to reset your password') }}</a></p> | ||
{%- if user.profile.first_name and user.profile.last_name %} | ||
<p>{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }},</p> | ||
{%- else %} | ||
<p>{{ _('Dear user') }},</p> | ||
{%- endif %} | ||
<p>{{ _('Someone requested that the password for your SONAR 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 institution') }}</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 |
---|---|---|
@@ -1,3 +1,16 @@ | ||
{{ _('Click the link below to reset your password:') }} | ||
{%- if user.profile.first_name and user.profile.last_name -%} | ||
{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }}, | ||
{%- else %} | ||
{{ _('Dear user') }}, | ||
{%- endif %} | ||
|
||
{{ reset_link.replace('/api', '') }} | ||
{{ _('Someone requested that the password for your SONAR 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 institution') }} |
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,26 @@ | ||
{# -*- coding: utf-8 -*- | ||
Swiss Open Access Repository | ||
Copyright (C) 2021 RERO | ||
|
||
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 user') }},</p> | ||
{%- endif %} | ||
<p>{{ _('Your password has been successfully reset.') }}</p> | ||
<p>{{ _('Best regards') }}</p> | ||
<p>{{ _('Your institution') }}</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,11 @@ | ||
{%- if user.profile.first_name and user.profile.last_name %} | ||
{{ _('Dear') }} {{ user.profile.first_name }} {{ user.profile.last_name }}, | ||
{%- else %} | ||
{{ _('Dear user') }}, | ||
{%- endif %} | ||
|
||
{{ _('Your password has been successfully reset.') }} | ||
|
||
{{ _('Best regards') }} | ||
|
||
{{ _('Your institution') }} |