Koha/members
Srikanth Dhondi f2162a86b0 Bug 9611: Change the password hashing algorithm from MD5 to Bcrypt
What this patch aims to accomplish?

 * All new passwords are stored as Bcrypt-hashes
 * For password verification:
     - If the user was created before this patch was applied then use
        MD5 to hash the entered password <-- backwards compatibility
     - If the user was created after this patch was applied then use
       Bcrypt to hash the entered password
 * Any password change made via the staff interface or the OPAC will
   be automatically Bcrypt-hashed; this applies to old users whose
   passwords were stored as MD5 hashes previously

Test plan:
  1) Add new users and check whether their passwords are stored as
     Bcrypt hashes or not.
  2) To test that authentication works for both old as well as new
     users:
       a) Login as an existing user whose password is stored as a
          MD5 hash
       b) Login as an existing user whose password is stored as a
          Bcrypt hash
  3) In the staff interface, change the password of an existing user
     whose password is stored as an MD5 hash
	a) Check the new password is stored as a Bcrypt-hash in the database
	b) Try to login with the new password
  4) In the OPAC, verify that
    a) Old user with old pass can change password, new format
    b) New user with new pass can change password
    c) Old and new user with self-updated pass can login

Whitespace cleanup was contributed by  Bernardo Gonzalez Kriegel.

Signed-off-by: Bernardo Gonzalez Kriegel <bgkriegel@gmail.com>
Signed-off-by: Mason James <mtj@kohaaloha.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Galen Charlton <gmc@esilibrary.com>
2013-10-03 22:22:32 +00:00
..
boraccount.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
default_messageprefs.pl Fix FSF address in directory members/ 2010-03-16 20:17:55 -04:00
deletemem.pl Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
files.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
guarantor_search.pl bug_6253: Unified member Search() 2011-10-19 16:23:02 +13:00
mancredit.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
maninvoice.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
member-flags.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
member-password.pl Bug 9611: Change the password hashing algorithm from MD5 to Bcrypt 2013-10-03 22:22:32 +00:00
member-picupload.pl Bug 6679 :[SIGNED-OFF] members dir now passes perlcritic tests 2012-04-10 13:44:53 +02:00
member.pl Bug 10838: (follow-up) silence another warn 2013-09-16 15:48:56 +00:00
memberentry.pl Bug 10507: improve warning about duplicate patron attribute value 2013-07-12 20:57:09 +00:00
members-home.pl Bug 7067 [Follow-up: templates] allow patron self registration via the opac 2012-12-14 08:08:59 -05:00
members-update-do.pl Bug 7067 - OPAC Borrower Self Registration 2012-12-14 08:08:59 -05:00
members-update.pl Bug 10080 - Change system pref IndependantBranches to IndependentBranches 2013-05-22 07:58:23 -07:00
moremember.pl Bug 5652: display subtitles on patron checkout and holds summary 2013-08-06 14:30:52 +00:00
notices.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
patronimage.pl Bug 5385: POD Cleanups (part 1) 2010-11-12 10:06:55 +13:00
pay.pl Bug 6413 - QA Followup - Add notes for 'Pay selected' 2013-05-21 16:32:12 -07:00
paycollect.pl Bug 6413 - QA Followup - Add notes for 'Pay selected' 2013-05-21 16:32:12 -07:00
printfeercpt.pl Bug 4440: Revised combined patch to print fee receipts and invoices 2010-11-18 14:33:27 +13:00
printinvoice.pl Bug 10027: (follow-up) tidy members/printinvoice.pl 2013-09-08 06:24:33 +00:00
printslip.pl Bug 7563 - Silent print slips using Firefox PlugIn jsPrintSetup and new staff client preference 2012-07-06 18:23:39 +02:00
readingrec.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
routing-lists.pl Bug 9917 - Routing list tab on patron account should depend on syspref/permission 2013-03-31 08:52:35 -04:00
setdebar.pl Bug 9953 - When OpacMaintenance breaks lifting debarment 2013-03-30 17:08:27 -04:00
setstatus.pl Bug 9406: ensure confirmation of patron renewal is displayed 2013-03-30 21:22:00 -04:00
statistics.pl Bug 10143 - Fixing license headers 2013-05-01 06:47:50 -04:00
update-child.pl Bug 5673: test guarantorid consistently 2011-02-03 22:10:24 +13:00