]> git.evergreen-ils.org Git - working/Evergreen.git/blob - Open-ILS/src/sql/Pg/upgrade/0627.data.patron-password-reset-msg.sql
LP#1758426: Disable triggers before recalculating bib visibility in 1085
[working/Evergreen.git] / Open-ILS / src / sql / Pg / upgrade / 0627.data.patron-password-reset-msg.sql
1 -- Evergreen DB patch 0627.data.patron-password-reset-msg.sql
2 --
3 -- Updates password reset template to match TPAC reset form
4 --
5 BEGIN;
6
7 -- check whether patch can be applied
8 SELECT evergreen.upgrade_deps_block_check('0627', :eg_version);
9
10 UPDATE action_trigger.event_definition SET template = 
11 $$
12 [%- USE date -%]
13 [%- user = target.usr -%]
14 To: [%- params.recipient_email || user.email %]
15 From: [%- params.sender_email || user.home_ou.email || default_sender %]
16 Subject: [% user.home_ou.name %]: library account password reset request
17
18 You have received this message because you, or somebody else, requested a reset
19 of your library system password. If you did not request a reset of your library
20 system password, just ignore this message and your current password will
21 continue to work.
22
23 If you did request a reset of your library system password, please perform
24 the following steps to continue the process of resetting your password:
25
26 1. Open the following link in a web browser: https://[% params.hostname %]/eg/opac/password_reset/[% target.uuid %]
27 The browser displays a password reset form.
28
29 2. Enter your new password in the password reset form in the browser. You must
30 enter the password twice to ensure that you do not make a mistake. If the
31 passwords match, you will then be able to log in to your library system account
32 with the new password.
33
34 $$
35 WHERE id = 20; -- Password reset request notification
36
37 COMMIT;