]> git.koha-community.org Git - koha.git/commit
Bug 16707: Fix software error in OPAC password recovery when leaving form fields...
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Sat, 11 Jun 2016 14:27:04 +0000 (15:27 +0100)
committerKyle M Hall <kyle@bywatersolutions.com>
Fri, 24 Jun 2016 11:49:32 +0000 (11:49 +0000)
commit0d690ca383f49d62b1b040004e960596e1a39b2d
treee30a694313253c9a9352fc5946e220d07fa193b5
parent574bff5c6f2472eda5da58eeec84018abe4e4711
Bug 16707: Fix software error in OPAC password recovery when leaving form fields empty

The $search_results is considered as an arrayref but is not defined if
no patron matches the recovery infos.

Test plan:
- Set syspref OpacResetPassword to "Allow"
- Go to OPAC
- Click link "Forgot your password?
- On the following screen "Forgotten password recovery", do not fill in
  form fields, click "Submit"
=> Without this patch you got the software error
=> With this patch apply, you will get "No account was found with the
provided information."

Sign-off on counter patch.
Signed-off-by: Marc VĂ©ron <veron@veron.ch>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
opac/opac-password-recovery.pl