@@ -, +, @@ email if not given login: koha password: whatever email: koha@k-c.org --- opac/opac-password-recovery.pl | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/opac/opac-password-recovery.pl +++ a/opac/opac-password-recovery.pl @@ -93,10 +93,10 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { $errNoBorrowerFound = 1; } -# If we dont have an email yet. Get one of the borrower's email or raise an error. - elsif ( !$email && !( $email = $firstNonEmptyEmail ) ) { +# No email has been entered, no recovery possible + elsif ( !$email ) { $hasError = 1; - $errNoBorrowerEmail = 1; + $errNoBorrowerFound = 1; } # Check if a password reset already issued for this borrower AND we are not asking for a new email --