https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=18025
Bug ID: 18025
Summary: Expired password recovery links cause sql crash
Change sponsored?: ---
Product: Koha
Version: master
Hardware: All
OS: All
Status: NEW
Severity: normal
Priority: P5 - low
Component: OPAC
Assignee: [email protected]
Reporter: [email protected]
QA Contact: [email protected]
Trying to reset a password with an expired token leads to a very user
unfriendly sql crash:
DBD::mysql::st execute failed: Duplicate entry '19' for key 'PRIMARY' [for
Statement "INSERT INTO `borrower_password_recovery` ( `borrowernumber`, `uuid`,
`valid_until`) VALUES ( ?, ?, ? )" with ParamValues: 0='19',
1='$2a$08$O8FjE434Ue3DLtGTgQB3Bu', 2='2017-02-02T22:03:01'] at
/usr/share/perl5/DBIx/Class/Storage/DBI.pm line 1832.
DBIx::Class::Storage::DBI::_dbh_execute(): Duplicate entry '19' for key
'PRIMARY' at /home/vagrant/kohaclone/Koha/Patron/Password/Recovery.pm line 127
We should delete these if they exist, and issue a new token.
--
You are receiving this mail because:
You are watching all bug changes.
_______________________________________________
Koha-bugs mailing list
[email protected]
http://lists.koha-community.org/cgi-bin/mailman/listinfo/koha-bugs
website : http://www.koha-community.org/
git : http://git.koha-community.org/
bugs : http://bugs.koha-community.org/