Browse Source

Bug 30611: Add STAFF_PASSWORD_RESET notice

This patch adds a new STAFF_PASSWORD_RESET notice template for password
recoveries initiated via the staff client as aposed for those initiated
by the end user.

Signed-off-by: Sally <sally.healey@cheshiresharedservices.gov.uk>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
Chmod 755 on atomic update file.
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
22.05.x
Martin Renvoize 2 years ago
committed by Fridolin Somers
parent
commit
e86c1e6736
  1. 14
      installer/data/mysql/atomicupdate/bug_30611.pl
  2. 21
      installer/data/mysql/en/mandatory/sample_notices.yml

14
installer/data/mysql/atomicupdate/bug_30611.pl

@ -0,0 +1,14 @@
use Modern::Perl;
return {
bug_number => "30611",
description => "Add STAFF_PASSWORD_RESET notice",
up => sub {
my ($args) = @_;
my ($dbh, $out) = @$args{qw(dbh out)};
# Add STAFF_PASSWORD_RESET notice
$dbh->do(q{
INSERT IGNORE INTO letter (module, code, name, is_html, title, content, message_transport_type) VALUES ('members', 'STAFF_PASSWORD_RESET', 'Online password reset', 1, "Koha password reset", "<html>\r\n<p>A librarian has reset the password for the account <strong><<user>></strong>.\r\n</p>\r\n<p>\r\nPlease create your new password using the following link:\r\n<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>\r\n</p>\r\n<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>\r\n<p>Thank you.</p>\r\n</html>", 'email');
});
},
};

21
installer/data/mysql/en/mandatory/sample_notices.yml

@ -1029,6 +1029,27 @@ tables:
- "</html>" - "</html>"
- "" - ""
- module: members
code: STAFF_PASSWORD_RESET
branchcode: ""
name: "Online password reset"
is_html: 1
title: "Koha password reset"
message_transport_type: email
lang: default
content:
- "<html>"
- "<p>A librarian has reset the password for the account <strong><<user>></strong>."
- "</p>"
- "<p>"
- "Please create your new password using the following link:"
- "<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>"
- "</p>"
- "<p>This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.</p>"
- "<p>Thank you.</p>"
- "</html>"
- ""
- module: members - module: members
code: SHARE_ACCEPT code: SHARE_ACCEPT
branchcode: "" branchcode: ""

Loading…
Cancel
Save