f2162a86b0
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> |
||
---|---|---|
.. | ||
boraccount.pl | ||
default_messageprefs.pl | ||
deletemem.pl | ||
files.pl | ||
guarantor_search.pl | ||
mancredit.pl | ||
maninvoice.pl | ||
member-flags.pl | ||
member-password.pl | ||
member-picupload.pl | ||
member.pl | ||
memberentry.pl | ||
members-home.pl | ||
members-update-do.pl | ||
members-update.pl | ||
moremember.pl | ||
notices.pl | ||
patronimage.pl | ||
pay.pl | ||
paycollect.pl | ||
printfeercpt.pl | ||
printinvoice.pl | ||
printslip.pl | ||
readingrec.pl | ||
routing-lists.pl | ||
setdebar.pl | ||
setstatus.pl | ||
statistics.pl | ||
update-child.pl |