@@ -, +, @@
accounts have the same mail address
- Create 3 Accounts, login names are test01, test02, test03, Email is the same
- Go to OPAC -> Password recovery and indicate E-Mail only
- You will get an email for only one of the accounts above.
- Apply patch, restart memcached and plack
- Go to db, delete from borrower_password_recovery;
- Try steps above to reproduce. You will get an error message:
Account identification with this email address only is ambiguous.
Please use the field 'Login' as well.
- Verify that other cases work as before (provide valid / invalid login only,
provide valid email for an existing account, provide unknown email, provide
both login and email with all combinations of valid / invalid)
---
.../bootstrap/en/modules/opac-password-recovery.tt | 5 ++++-
opac/opac-password-recovery.pl | 16 +++++++++++++++-
2 files changed, 19 insertions(+), 2 deletions(-)
--- a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt
+++ a/koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt
@@ -54,6 +54,9 @@
Please try again later.
[% ELSIF (errNoBorrowerFound) %]
No account was found with the provided information.
+ [% ELSIF (errMultipleAccountsForEmail) %]
+ Account identification with this email address only is ambiguous.
+
Please use the field 'Login' as well.
[% ELSIF (errAlreadyStartRecovery) %]
The process of password recovery has already been started for this account ("[% username %]")
You should have received an email with a link to reset your password.
@@ -78,7 +81,7 @@