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

(-)a/installer/data/mysql/atomicupdate/bug_25936.pl (-1 / +1 lines)
Lines 10-16 return { Link Here
10
        # Add PASSWORD_CHANGE notice
10
        # Add PASSWORD_CHANGE notice
11
        $dbh->do( q{
11
        $dbh->do( q{
12
            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',
12
            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',
13
            "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');
13
            "Dear [% borrower.firstname %] [% borrower.surname %],\r\n\r\nWe want to notify you that your password has been changed. If you did not change it yourself (or requested that change), please contact library staff.\r\n\r\nYour library.", 'email');
14
        });
14
        });
15
15
16
        # Add systempreference
16
        # Add systempreference
(-)a/installer/data/mysql/en/mandatory/sample_notices.yml (-2 / +2 lines)
Lines 1087-1095 tables: Link Here
1087
          content:
1087
          content:
1088
            - "Dear [% patron.firstname %] [% patron.surname %],"
1088
            - "Dear [% patron.firstname %] [% patron.surname %],"
1089
            - ""
1089
            - ""
1090
            - "Someone has changed your library user account password."
1090
            - "We want to notify you that your password has been changed. If you did not change it yourself (or requested that change), please contact library staff."
1091
            - ""
1091
            - ""
1092
            - "If this is unexpected, please contact the library"
1092
            - "Your library."
1093
1093
1094
        - module: members
1094
        - module: members
1095
          code: PASSWORD_RESET
1095
          code: PASSWORD_RESET
(-)a/t/db_dependent/Koha/Patrons.t (-4 / +2 lines)
Lines 2005-2014 subtest '->set_password' => sub { Link Here
2005
    t::lib::Mocks::mock_preference( 'NotifyPasswordChange', 1 );
2005
    t::lib::Mocks::mock_preference( 'NotifyPasswordChange', 1 );
2006
    $patron->set_password({ password => 'abcd   c' });
2006
    $patron->set_password({ password => 'abcd   c' });
2007
    my $queued_notices = Koha::Notice::Messages->search({ borrowernumber => $patron->borrowernumber });
2007
    my $queued_notices = Koha::Notice::Messages->search({ borrowernumber => $patron->borrowernumber });
2008
    is( $queued_notices->count, 1, "One notice queued when NotifyPassowrdChange enabled" );
2008
    is( $queued_notices->count, 1, "One notice queued when NotifyPasswordChange enabled" );
2009
    my $THE_notice = $queued_notices->next;
2009
    my $THE_notice = $queued_notices->next;
2010
    is( $THE_notice->status, 'failed', "The notice was sent immediately");
2010
    is( $THE_notice->status, 'failed', "The notice was handled immediately and failed on wrong email address."); #FIXME Mock sending mail
2011
2012
    $schema->storage->txn_rollback;
2011
    $schema->storage->txn_rollback;
2013
};
2012
};
2014
2013
2015
- 

Return to bug 25936