]> 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)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Fri, 7 Feb 2014 14:01:00 +0000 (11:01 -0300)
commita120f4cf09d7226febcae3320aa3de8bf8e44552
tree4ef441c3c2dcae6eb108dabec1a174712b1a6392
parent9cd6cc2b94e24daeb2c140f5da43fcc28c01b99a
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>
(cherry picked from commit 810168643d02ebb69c2d56a5fa17b811b06d68a8)
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
members/update-child.pl