diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index 9ee1278c0a..d1cdde3897 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -211,8 +211,8 @@ elsif ($uniqueKey) { #reset password form username => $username, errLinkNotValid => $errLinkNotValid, hasError => ( $errLinkNotValid ? 1 : 0 ), - minPasswordLength => $borrower->category->effective_min_password_length, - RequireStrongPassword => $borrower->category->effective_require_strong_password + minPasswordLength => $borrower ? $borrower->category->effective_min_password_length: undef, + RequireStrongPassword => $borrower ? $borrower->category->effective_require_strong_password: undef, ); } else { #password recovery form (to send email)