]> git.koha-community.org Git - koha.git/commit
Bug 10453: fix unintended password reset when updating child to adult
authorJonathan Druart <jonathan.druart@biblibre.com>
Tue, 24 Dec 2013 13:35:36 +0000 (14:35 +0100)
committerFridolin SOMERS <fridolin.somers@biblibre.com>
Tue, 14 Jan 2014 08:34:42 +0000 (09:34 +0100)
commit810168643d02ebb69c2d56a5fa17b811b06d68a8
tree9f2099fbc6cdf929234b70ae9f40d3439828d9b0
parent56a1b12e574c89d8f1bade88ee46e3b164957752
Bug 10453: fix unintended password reset when updating child to adult

ModMember supposes the password given in parameter is the
password string, so if it receives the encrypted password,
it will encrypt it again! By simply deleting the password key
from the hash, ModMember leaves the password unchanged.

Test plan:
1/ Create or choose a child patron
2/ Update it to an adult category using the
   "Update child to adult patron" link
3/ Try to log in at the OPAC with this patron: It is not
   possible, the password has changed
4/ Apply the patch and try again previous steps

Signed-off-by: Mark Tompsett <mtompset@hotmail.com>
Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Confirmed the problem and tested the patch fixes it.
Passes all tests and QA script.

Signed-off-by: Galen Charlton <gmc@esilibrary.com>
(cherry picked from commit 3c5b4712717d082b66376915c47b6b5880695d31)
Signed-off-by: Fridolin SOMERS <fridolin.somers@biblibre.com>
members/update-child.pl