Bug 22047: Fix opac/opac-passwd.pl call

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Josef Moravec <josef.moravec@gmail.com>

Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
(cherry picked from commit d4726c7132)
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
Tomas Cohen Arazi 2018-12-26 12:42:28 -03:00 committed by Martin Renvoize
parent 571ef9e6d2
commit c6170daba8
No known key found for this signature in database
GPG Key ID: 422B469130441A0F
2 changed files with 2 additions and 2 deletions

View File

@ -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();

View File

@ -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 );
}