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

(-)a/Koha/Patron.pm (-1 / +1 lines)
Lines 708-714 sub set_password { Link Here
708
708
709
                my $password_length = length($password);
709
                my $password_length = length($password);
710
                Koha::Exceptions::Password::TooShort->throw(
710
                Koha::Exceptions::Password::TooShort->throw(
711
                    { length => $password_length, min_length => $min_length } );
711
                    length => $password_length, min_length => $min_length );
712
            }
712
            }
713
            elsif ( $error eq 'has_whitespaces' ) {
713
            elsif ( $error eq 'has_whitespaces' ) {
714
                Koha::Exceptions::Password::WhitespaceCharacters->throw();
714
                Koha::Exceptions::Password::WhitespaceCharacters->throw();
(-)a/opac/opac-passwd.pl (-2 / +1 lines)
Lines 60-66 if ( C4::Context->preference("OpacPasswordChange") ) { Link Here
60
                $template->param( 'passwords_mismatch'   => '1' );
60
                $template->param( 'passwords_mismatch'   => '1' );
61
            } else {
61
            } else {
62
                try {
62
                try {
63
                    $patron->set_password( $new_password );
63
                    $patron->set_password({ password => $new_password });
64
                    $template->param( 'password_updated' => '1' );
64
                    $template->param( 'password_updated' => '1' );
65
                    $template->param( 'borrowernumber'   => $borrowernumber );
65
                    $template->param( 'borrowernumber'   => $borrowernumber );
66
                }
66
                }
67
- 

Return to bug 22047