]> git.koha-community.org Git - koha.git/commit
Bug 17924 - Fix error in password recovery
authorMagnus Enger <magnus@libriotech.no>
Tue, 17 Jan 2017 14:50:49 +0000 (14:50 +0000)
committerMason James <mtj@kohaaloha.com>
Wed, 25 Jan 2017 01:38:26 +0000 (14:38 +1300)
commitbb5a88a3de811f4573a09a41571424e8c99e3ad5
tree8ccc445d0d70342c7a7fe13fe0304c1fb11f78cd
parent6b9cfe68d020ba82e05531e3c799714b5ef7e8a1
Bug 17924 - Fix error in password recovery

To test:

- Set OpacResetPassword = allowed
- Make sure you have a user with a username and email
- Go to the OPAC and make sure you are not logged in
- Click on the "Forgot your password?" link
- Fill in "Login" and "Email" and click on "Submit"
- You will get an error that says:

Undefined subroutine &C4::Letters::GetPreparedLetter called at
/home/vagrant/kohaclone/Koha/Patron/Password/Recovery.pm line 142.

- Apply the patch
- The steps above will have added your user to the borrower_password_recovery
  table in the database. Delete it from there to make sure you start a
  fresh reset request.
- Repeat the steps above and notice that the error is gone. You should
  get a nice message instead that says "An email has been sent to [your
  email]".
- Sign off

Signed-off-by: Zoe Schoeler <crazy.mental.onion@gmail.com>
Signed-off-by: Nick Clemens <nick@bywatersolutions.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
(cherry picked from commit b43b79156f179094ed16a896f0bf0b3d39b4af7d)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
Koha/Patron/Password/Recovery.pm