diff --git a/installer/data/mysql/atomicupdate/bug_30611.pl b/installer/data/mysql/atomicupdate/bug_30611.pl new file mode 100755 index 0000000000..2a8ba02007 --- /dev/null +++ b/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", "\r\n

A librarian has reset the password for the account <>.\r\n

\r\n

\r\nPlease create your new password using the following link:\r\n
>\"><>\r\n

\r\n

This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.

\r\n

Thank you.

\r\n", 'email'); + }); + }, +}; diff --git a/installer/data/mysql/en/mandatory/sample_notices.yml b/installer/data/mysql/en/mandatory/sample_notices.yml index 37b4302eac..4da53c29b5 100644 --- a/installer/data/mysql/en/mandatory/sample_notices.yml +++ b/installer/data/mysql/en/mandatory/sample_notices.yml @@ -1029,6 +1029,27 @@ tables: - "" - "" + - 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: + - "" + - "

A librarian has reset the password for the account <>." + - "

" + - "

" + - "Please create your new password using the following link:" + - "
>\"><>" + - "

" + - "

This link will be valid for 5 days from this email's reception, then you must reapply if you do not change your password.

" + - "

Thank you.

" + - "" + - "" + - module: members code: SHARE_ACCEPT branchcode: ""