Koha/koha-tmpl/opac-tmpl/bootstrap
Fridolin Somers 470c760669 Bug 26941: Fix OPAC password recovery error messages
In OPAC password recovery perl opac/opac-password-recovery.pl
there are some error codes not in Template koha-tmpl/opac-tmpl/bootstrap/en/modules/opac-password-recovery.tt

This patch fixes several bugs:
- remove 'use Koha::Patrons' defined twice
- remove vars $errTooManyEmailFound $errBadEmail, not used in any template
- add in template text for error 'errNoBorrowerEmail'

1) Create a patron A with login but no email
2) Create a patron B with login and valid email
3) Go to system preferences set 'OpacResetPassword' to ON
4) Make sure that OpacPasswordChange is also ON
5) Go to 'Forgot your password' in OPAC
6) Enter login if patron A and save
=> You get message 'This account has no email address we can send the email to.'
7) Enter login if patron B and save
=> Password recovery is send, no error message

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Victor Grousset/tuxayo <victor@tuxayo.net>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
2020-12-21 10:08:02 +01:00
..
css Bug 26886: Compiled CSS 2020-11-04 17:32:35 +01:00
en Bug 26941: Fix OPAC password recovery error messages 2020-12-21 10:08:02 +01:00
images Bug 26164: Replace OPAC table sort icons with SVG 2020-09-29 14:28:19 +02:00
itemtypeimg
js Bug 26148: OpenLibrary "Preview" link target is unclear to patrons 2020-11-05 15:24:20 +01:00
lib Bug 26805: Remove remaining instances of jquery.checkboxes plugin from the OPAC 2020-11-03 10:57:35 +01:00