]> git.koha-community.org Git - koha.git/commit
Bug 27860: Fix password recovery
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 5 Mar 2021 09:14:08 +0000 (10:14 +0100)
committerFridolin Somers <fridolin.somers@biblibre.com>
Fri, 19 Mar 2021 15:14:33 +0000 (16:14 +0100)
commit7cef18919ebd61f76d1c8344c824b25500cf2795
tree6324939fac4b270ce96070a6b50d37da17ae2851
parent759e63ccf4f56c1b818b64f5163c65d4732fa9f6
Bug 27860: Fix password recovery

Same as the previous patch but for the password recovery feature.

Test plan:
1. Do not apply the patches
2. Set KohaAdminEmailAddress to an invalid email (root@localhost for
instance)
3. Use the password recovery feature
5. Boom (that must be fixed on a separate bug report)
6. Set KohaAdminEmailAddress to a valid email (root@example.org)
7. Use again the password recovery for a different user
8. Still Boom! (because it's processing the first invalid email)
9. Apply the patches, restart_all
10. Try again the password recovery
=> The email is sent!
Notice the change in DB, the first email is still there with status
"pending" and second email is sent!

Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
(cherry picked from commit 510958d90b6b99bd808ecffa8ded1fc85771f1f9)
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
Koha/Patron/Password/Recovery.pm