Koha/installer/data/mysql/en/mandatory
Maxime Beaulieu d5abcbc8f3 Bug 8753 - Add forgot password link to OPAC
I've addressed a lot of Liz Rea's points.

1.  I have moved the code from updatedatabase.pl and kohastructure.sql to a file in the atomicupdates directory.
1a. The feature is now off by default when the atomicupdate is run.

2.  The password reset link is now visible on the home page, in the modal box and on opac-user.pl .

3.  The password recovery pages now use bootstrap markup.

4.  I am unsure here. I see "New Password:" and "Confirm new password:".

5.  This should still work :).

6.  I could not reproduce.

7.  I have added the userid field.
    You can now reset the password by submitting either your useid or email address.
    Both fields can be filled, but the email address must be one of the borrower's (email, emailpro or b_email).
    When entering only the email address and two borrowers use that same address, the system tells the user to try with another address or to specify his userid.

8.  The text is in the atomicupdate file. Have at it, anyone.

Concerning the email. It is inconvenient for the use to have to wait X minutes for the message queue the be processed.
Maybe we could add a sub in Letters.pm that:
    Takes the same argments as EnqueueLetter
    Sends the letter.
    Saves the letter in the message queue with a 'sent' status.

 TEST PLAN:

Setup)
    1) apply the patch
    2) go to system preferences OPAC>>Privacy and set 'OpacResetPassword' to ON.
    2b) make sure that OpacPasswordChange is also ON.
A)
    1) refresh front page, click on 'Forgot your password' and enter a VALID address
    1b) Also try an INVALID address (valid yet not in your koha db).  An error message will show up.
    2) An email should be received at that address with a link.
    3) Follow the link in the mail to fill the new password.
    Until a satisfactory new password is entered, the old password is not reset.
    4) Go to main page try the new password.
B)
    1) Repeat the password reset, this time use the userid (username) field.
    2) Try to reset the password using a userid and an email not linked to the account. An error appears.
    3) Make sure the borrower has many available email addresses.
    4) For each email, reset the password using both the userid and the email. The link should be sent to the specified address
C)
    1) Make sure two borrowers use the same email.
    2) Repeat the reset procedure in test case A). An error message appears

http://bugs.koha-community.org/show_bug.cgi?id=13068

 Author:    Maxime Beaulieu <maxime.beaulieu@inlibro.com>

Followed test plan. Works as described.
Signed-off-by: Marc Veron <veron@veron.ch>

New sign-off after testing all patches together
Signed-off-by: Marc Veron <veron@veron.ch>

Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl>
2016-01-27 06:40:53 +00:00
..
auth_values.sql wr76595 (bug 4157): Control barcode display with a borrower attribute 2011-04-05 14:54:50 +12:00
auth_values.txt wr76595 (bug 4157): Control barcode display with a borrower attribute 2011-04-05 14:54:50 +12:00
class_sources.sql Fix FSF address in directory installer/ 2010-03-16 20:17:50 -04:00
class_sources.txt Moved language dirs one level down under dbms dir (mysql) 2007-11-13 12:38:29 -06:00
message_transport_types.sql Bug 12298: The "feed" MTT does not seem to be used and can be removed 2014-11-25 17:14:50 -03:00
message_transport_types.txt Bug 11731 - Fixed typo in message_transport_types.txt file. 2014-03-11 14:20:32 +00:00
sample_frequencies.sql Bug 11261: make sample serial frequencies mandatory during installation 2013-12-13 18:34:05 +00:00
sample_frequencies.txt Bug 11261: make sample serial frequencies mandatory during installation 2013-12-13 18:34:05 +00:00
sample_notices.sql Bug 8753 - Add forgot password link to OPAC 2016-01-27 06:40:53 +00:00
sample_notices.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_notices_message_attributes.sql Bug 7022: Move sample_notices* sql files from optional to mandatory 2011-10-18 15:57:57 +13:00
sample_notices_message_attributes.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_notices_message_transports.sql Bug 7022: Move sample_notices* sql files from optional to mandatory 2011-10-18 15:57:57 +13:00
sample_notices_message_transports.txt Bug 9023: Update installer text files 2012-11-20 08:05:04 -05:00
sample_numberpatterns.sql Bug 11260: Follow up - normalizing frequencies in English sample file a bit 2014-01-08 00:53:56 +00:00
sample_numberpatterns.txt Bug 11261: make sample serial numbering patterns mandatory during installation 2013-12-13 18:33:57 +00:00