Bug 22559 - OPAC Forgotten password functionality not working
Summary: OPAC Forgotten password functionality not working
Status: CLOSED FIXED
Alias: None
Product: Koha
Classification: Unclassified
Component: OPAC (show other bugs)
Version: Main
Hardware: All All
: P5 - low critical (vote)
Assignee: Liz Rea
QA Contact: Tomás Cohen Arazi
URL:
Keywords:
Depends on: 22048
Blocks:
  Show dependency treegraph
 
Reported: 2019-03-21 16:41 UTC by Liz Rea
Modified: 2020-01-06 20:14 UTC (History)
4 users (show)

See Also:
Change sponsored?: ---
Patch complexity: Trivial patch
Documentation contact:
Documentation submission:
Text to go in the release notes:
Version(s) released in:


Attachments
Bug 22559: Restore OPAC forgotten password functionality (1.07 KB, patch)
2019-03-21 17:13 UTC, Liz Rea
Details | Diff | Splinter Review
Bug 22559: Restore OPAC forgotten password functionality (1.15 KB, patch)
2019-03-21 17:25 UTC, Jonathan Druart
Details | Diff | Splinter Review
Bug 22559: Restore OPAC forgotten password functionality (1.20 KB, patch)
2019-03-21 18:17 UTC, Tomás Cohen Arazi
Details | Diff | Splinter Review

Note You need to log in before you can comment on or make changes to this bug.
Description Liz Rea 2019-03-21 16:41:07 UTC
Trying to reset a password using the forgotten password OPAC functionality seems to fail with one of a couple of messages: 

Can't call method "catch" without a package or object reference at /home/vagrant/kohaclone/opac/opac-password-recovery.pl line 158

or 

Can't call method "isa" on an undefined value at /home/vagrant/kohaclone/opac/opac-password-recovery.pl line 159

This seems to happen after commit f822dee088b86edecd5d5c73718ad9f8a04c0664

To reproduce:

Enable OpacResetPassword 
Create a borrower with a username and password
Go to the OPAC, try to reset the password (I always get the reset link out of the message_queue in the database rather than worry about receiving the actual email. You do you.)
Go to the link provided.
Attempt to set a password, this should fail.
Comment 1 Liz Rea 2019-03-21 17:13:26 UTC
Created attachment 86854 [details] [review]
Bug 22559: Restore OPAC forgotten password functionality

To test:

Enable OpacResetPassword
Create a borrower with a username and password
Go to the OPAC, try to reset the password (I always get the reset link
        token out of the message_queue in the database rather than worry about
        receiving the actual email. You do you.)
Go to the link provided.
Attempt to set a password, this should fail.
Apply this patch, restart the things
Go through the process again, password should be reset.
Comment 2 Jonathan Druart 2019-03-21 17:25:35 UTC
Created attachment 86857 [details] [review]
Bug 22559: Restore OPAC forgotten password functionality

To test:

Enable OpacResetPassword
Create a borrower with a username and password
Go to the OPAC, try to reset the password (I always get the reset link
        token out of the message_queue in the database rather than worry about
        receiving the actual email. You do you.)
Go to the link provided.
Attempt to set a password, this should fail.
Apply this patch
Go through the process again, password should be reset.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Comment 3 Tomás Cohen Arazi 2019-03-21 18:17:32 UTC
Created attachment 86859 [details] [review]
Bug 22559: Restore OPAC forgotten password functionality

To test:

Enable OpacResetPassword
Create a borrower with a username and password
Go to the OPAC, try to reset the password (I always get the reset link
        token out of the message_queue in the database rather than worry about
        receiving the actual email. You do you.)
Go to the link provided.
Attempt to set a password, this should fail.
Apply this patch
Go through the process again, password should be reset.

Signed-off-by: Jonathan Druart <jonathan.druart@bugs.koha-community.org>
Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Comment 4 Nick Clemens (kidclamp) 2019-03-22 20:34:38 UTC
Awesome work all!

Pushed to master for 19.05
Comment 5 Martin Renvoize 2019-03-25 14:40:59 UTC
The enhancement that caused this was not backported to 18.11.x series.