Bug 25936: (follow-up) Rename notice and fix indentation

This patch renames the notice from PASSCHANGE to PASSWORD_CHANGE which
is both clearer and more consistent.  It also fixes the indentation
issues mentioned in the atomicupdate.

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
This commit is contained in:
Martin Renvoize 2022-03-09 12:23:07 +00:00 committed by Tomas Cohen Arazi
parent 93fdab7dc5
commit 00a552d270
No known key found for this signature in database
GPG Key ID: 0A272EA1B2F3C15F
2 changed files with 4 additions and 9 deletions

View File

@ -7,15 +7,10 @@ return {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
# Add PASSCHANGE notice
# Add PASSWORD_CHANGE notice
$dbh->do( q{
INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('members', 'PASSCHANGE', 'Notification of password change', 'Library account password change notification',
"Dear [% borrower.firstname %] [% borrower.surname %],
Someone has changed your library user account password.
If this is unexpected, please contact the library.
", 'email');
INSERT IGNORE INTO letter (module, code, name, title, content, message_transport_type) VALUES ('members', 'PASSWORD_CHANGE', 'Notification of password change', 'Library account password change notification',
"Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nSomeone has changed your library user account password.\r\n\r\nIf this is unexpected, please contact the library.", 'email');
});
# Add systempreference

View File

@ -1077,7 +1077,7 @@ tables:
- "If you did not initiate this request, you may safely ignore this one-time message. The request will expire shortly."
- module: members
code: PASSCHANGE
code: PASSWORD_CHANGE
branchcode: ""
name: "Notification of password change"
is_html: 1