View | Details | Raw Unified | Return to bug 30611
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_30611.pl (+14 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => "30611",
5
    description => "Add STAFF_PASSWORD_RESET notice",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        # Add STAFF_PASSWORD_RESET notice
10
        $dbh->do(q{
11
            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');
12
        });
13
    },
14
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +21 lines)
Lines 1023-1028 tables: Link Here
1023
            - "</html>"
1023
            - "</html>"
1024
            - ""
1024
            - ""
1025
1025
1026
        - module: members
1027
          code: STAFF_PASSWORD_RESET
1028
          branchcode: ""
1029
          name: "Online password reset"
1030
          is_html: 1
1031
          title: "Koha password reset"
1032
          message_transport_type: email
1033
          lang: default
1034
          content:
1035
            - "<html>"
1036
            - "<p>A librarian has reset the password for the account <strong><<user>></strong>."
1037
            - "</p>"
1038
            - "<p>"
1039
            - "Please create your new password using the following link:"
1040
            - "<br/><a href=\"<<passwordreseturl>>\"><<passwordreseturl>></a>"
1041
            - "</p>"
1042
            - "<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>"
1043
            - "<p>Thank you.</p>"
1044
            - "</html>"
1045
            - ""
1046
1026
        - module: members
1047
        - module: members
1027
          code: SHARE_ACCEPT
1048
          code: SHARE_ACCEPT
1028
          branchcode: ""
1049
          branchcode: ""
1029
- 

Return to bug 30611