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

(-)a/installer/data/mysql/atomicupdate/bug_29894.pl (+16 lines)
Line 0 Link Here
1
use Modern::Perl;
2
3
return {
4
    bug_number => 29894,
5
    description => "Add 2FA (de)registering notices",
6
    up => sub {
7
        my ($args) = @_;
8
        my ($dbh, $out) = @$args{qw(dbh out)};
9
        $dbh->do( q{
10
INSERT IGNORE INTO letter
11
(module, code, branchcode, name, is_html, title, content, message_transport_type, lang) VALUES
12
('members', '2FA_DEREGISTER', '', 'Confirmation of deregistering two factor authentication', 1, 'Confirmation of deregistering two factor authentication', '<p>Dear [% borrower.firstname %] [% borrower.surname %],</p>\r\n<p>This is to confirm that we deregistered two factor authentication for you.</p>\r\n<p>If you did not deregister, someone else may be using your account. Please contact technical support.</p>\r\n<p>Your library</p>', 'email', 'default'),
13
('members', '2FA_REGISTER', '', 'Confirmation of registering two factor authentication', 1, 'Confirmation of registering two factor authentication', '<p>Dear [% borrower.firstname %] [% borrower.surname %],</p>\r\n<p>This is to confirm that we registered two factor authentication for you.</p>\r\n<p>If you did not register, someone else may be using your account. Please contact technical support.</p>\r\n<p>Your library</p>', 'email', 'default')
14
        });
15
    },
16
};
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-1 / +28 lines)
Lines 1635-1637 tables: Link Here
1635
            - "Callnumber: <<items.itemcallnumber>>"
1635
            - "Callnumber: <<items.itemcallnumber>>"
1636
            - "Waiting since: <<recalls.waitingdate>>"
1636
            - "Waiting since: <<recalls.waitingdate>>"
1637
            - "Notes: <<recalls.recallnotes>>"
1637
            - "Notes: <<recalls.recallnotes>>"
1638
- 
1638
1639
        - module: members
1640
          code: 2FA_DEREGISTER
1641
          branchcode: ""
1642
          name: "Confirmation of deregistering two factor authentication"
1643
          is_html: 1
1644
          title: "Confirmation of deregistering two factor authentication"
1645
          message_transport_type: email
1646
          lang: default
1647
          content:
1648
            - "<p>Dear [% borrower.firstname %] [% borrower.surname %],</p>"
1649
            - "<p>This is to confirm that we deregistered two factor authentication for you.</p>"
1650
            - "<p>If you did not deregister, someone else may be using your account. Please contact technical support.</p>"
1651
            - "<p>Your library</p>"
1652
1653
        - module: members
1654
          code: 2FA_REGISTER
1655
          branchcode: ""
1656
          name: "Confirmation of registering two factor authentication"
1657
          is_html: 1
1658
          title: "Confirmation of registering two factor authentication"
1659
          message_transport_type: email
1660
          lang: default
1661
          content:
1662
            - "<p>Dear [% borrower.firstname %] [% borrower.surname %],</p>"
1663
            - "<p>This is to confirm that we registered two factor authentication for you.</p>"
1664
            - "<p>If you did not register, someone else may be using your account. Please contact technical support.</p>"
1665
            - "<p>Your library</p>"

Return to bug 29894