@@ -, +, @@ --- Koha/Patron.pm | 2 +- opac/opac-passwd.pl | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) --- a/Koha/Patron.pm +++ a/Koha/Patron.pm @@ -708,7 +708,7 @@ sub set_password { my $password_length = length($password); Koha::Exceptions::Password::TooShort->throw( - { length => $password_length, min_length => $min_length } ); + length => $password_length, min_length => $min_length ); } elsif ( $error eq 'has_whitespaces' ) { Koha::Exceptions::Password::WhitespaceCharacters->throw(); --- a/opac/opac-passwd.pl +++ a/opac/opac-passwd.pl @@ -60,7 +60,7 @@ if ( C4::Context->preference("OpacPasswordChange") ) { $template->param( 'passwords_mismatch' => '1' ); } else { try { - $patron->set_password( $new_password ); + $patron->set_password({ password => $new_password }); $template->param( 'password_updated' => '1' ); $template->param( 'borrowernumber' => $borrowernumber ); } --