diff --git a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt index fd5145b302..c9beb40a52 100644 --- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt +++ b/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt @@ -89,7 +89,7 @@
-

To reset your password, enter your login and your email address. +

To reset your password, enter your login or your email address. diff --git a/opac/opac-password-recovery.pl b/opac/opac-password-recovery.pl index 648c40758e..456aa97ff5 100755 --- a/opac/opac-password-recovery.pl +++ b/opac/opac-password-recovery.pl @@ -104,6 +104,10 @@ if ( $query->param('sendEmail') || $query->param('resendEmail') ) { DeleteExpiredPasswordRecovery( $borrower->borrowernumber ); } } + # Set the $email, if we don't have one. + if ( !$hasError && !$email ) { + $email = $firstNonEmptyEmail; + } } else { # 0 matching borrower $hasError = 1;