Tested in 3.10.x and master. When you update a child to an adult it loses the password (or changes it) - the patron can no longer log in to the OPAC after using the 'update child to adult' in the staff client.
Created attachment 23809 [details] [review] Bug 10453: Updating child to adult loses password ModMember supposes the password given in parameter is the password string, so if it receives the encrypted password, it will encrypt it again! 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
Created attachment 23810 [details] [review] [SIGNED OFF] Bug 10453: Updating child to adult loses password 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>
Merry Christmas! :)
Created attachment 23818 [details] [review] [PASSED QA] Bug 10453: Updating child to adult loses password 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.
Pushed to master. Thanks, Jonathan!
Patch pushed to 3.14.x, will be in 3.14.2.
This patch has been pushed to 3.12.x, will be in 3.12.11. Thanks Jonathan!