Koha-clms/Koha/Patron
Liz Rea 474fbf5f56 Bug 18025 - Expired password recovery links cause sql crash
When a user gets an email, but doesn't act or visit it within two days,
     attempting to create a new one causes a collision. We should just
     delete the old one, assuming they still want to reset their
     password.

To test:
create yourself a borrower with a userid and password.
Attempt a password recovery on the OPAC
update the entry in the database for that user to have an expired token
e.g. update borrower_password_recovery set valid_until = '2017-01-25
03:25:26' where borrowernumber = 12;
Attempt another password recovery operation - should error
apply the patch
Try it again - no error, new token is generated and additional email
with new link is sent.

Issue reproduced - is resolved by patch
Signed-off-by: Marc Véron <veron@veron.ch>

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Mason James <mtj@kohaaloha.com>
2017-02-23 10:26:46 +13:00
..
Password Bug 18025 - Expired password recovery links cause sql crash 2017-02-23 10:26:46 +13:00
Categories.pm Bug 15446: Rename Koha::Object[s]->type with _type 2016-02-12 12:35:57 -07:00
Category.pm Bug 14637: Fix add patron category under MySQL 5.7 2017-01-25 12:43:16 +13:00
Debarments.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
Discharge.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00
Files.pm Bug 16011: $VERSION - Remove empty BEGIN block 2016-03-24 17:20:41 +00:00
Image.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Images.pm Bug 15635: Change method type to _type for bug 15446 2016-03-04 12:54:20 +00:00
Message.pm Bug 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Messages.pm Bug 15632 [QA Followup] - Change method type to _type for bug 15446 2016-03-03 21:22:16 +00:00
Modifications.pm Bug 15548: Move new patron related code to Patron* 2016-03-03 14:38:26 -07:00