Koha/koha-tmpl/intranet-tmpl/prog/en/modules/admin
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
..
preferences Bug 8753 - Add forgot password link to OPAC 2016-01-27 06:40:53 +00:00
admin-home.tt Bug 15099 [QA Followup] - Make bug pass koha-qa.pl 2015-12-30 16:49:16 +00:00
aqbudgetperiods.tt Bug 15004: Allow to change amounts of duplicated budgets 2016-01-27 06:05:01 +00:00
aqbudgets.tt
aqcontract.tt
aqplan.tt Bug 15049: Simplify code in aqplan.tt 2015-12-30 23:34:34 +00:00
audio_alerts.tt
auth_subfields_structure.tt Bug 15233: (followup) Remove 2 sentences. 2015-12-29 23:14:39 +00:00
auth_tag_structure.tt Bug 15381: Remove getauthtypes and getauthtype 2015-12-31 18:59:02 +00:00
authorised_values.tt
authtypes.tt Bug 15380: Use Koha::Authority::Type[s] in admin script 2015-12-31 18:50:41 +00:00
biblio_framework.tt Bug 14889: Fix error msg on duplicate 2015-12-31 19:04:45 +00:00
branch_transfer_limits.tt Bug 15363: Translatability: Fix issue with ambiguous 'all' on Administration > Set library checkin and transfer policy 2015-12-29 20:35:49 +00:00
branches.tt Bug 15294: Koha::Libraries - Rewrite the admin scripts 2016-01-14 15:22:26 +00:00
categories.tt Bug 15099 [QA Followup] - Make bug pass koha-qa.pl 2015-12-30 16:49:16 +00:00
checkmarc.tt
cities.tt Bug 15373: More changes of Zip to ZIP on intranet 2015-12-30 16:30:35 +00:00
classsources.tt
clone-rules.tt Bug 15598: Also fixing space near exclamation mark in other files 2016-01-27 05:19:38 +00:00
columns_settings.tt Bug 15361: Translatability: Fix issue on Administration Columns settings 2015-12-29 20:28:04 +00:00
currency.tt
didyoumean.tt Bug 15362: Translatability: Fix issue on Administration 'Did you mean?' 2015-12-29 20:33:43 +00:00
fieldmapping.tt
item_circulation_alerts.tt
items_search_field.tt
items_search_fields.tt
itemtypes.tt
koha2marclinks.tt Bug 15236: Better translatibility in "Connect biblio.biblionumber to a MARC subfield" 2015-12-29 23:29:56 +00:00
localization.tt Bug 15477: (follow-up) Bug 14100: Better errors handling 2016-01-12 16:13:41 +00:00
marc_subfields_structure.tt Bug 15233: (followup) Remove 2 sentences. 2015-12-29 23:14:39 +00:00
marctagstructure.tt
matching-rules.tt
oai_set_mappings.tt
oai_sets.tt
patron-attr-types.tt
preferences.tt 15617 - Be able to close "Click to edit" text boxes after opening them 2016-01-27 05:33:12 +00:00
printers.tt
smart-rules.tt Bug 15354: (QA followup) remove tab character 2016-01-19 15:34:32 -07:00
sru_modmapping.tt
systempreferences.tt
transport-cost-matrix.tt
z3950servers.tt Bug 15298 [QA Followup] - Fix whitespace issues 2016-01-27 05:26:49 +00:00