diff --git a/Koha/Patron.pm b/Koha/Patron.pm index 5831034bdc..3a079f60a1 100644 --- a/Koha/Patron.pm +++ b/Koha/Patron.pm @@ -703,7 +703,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();