]> git.koha-community.org Git - koha.git/commit
Bug 6854: Correct a double password encryption problem in import_borrowers.pl
authorFrédérick Capovilla <frederick.capovilla@sys-tech.net>
Wed, 7 Sep 2011 18:15:35 +0000 (14:15 -0400)
committerChris Nighswonger <chris.nighswonger@gmail.com>
Tue, 25 Oct 2011 23:42:21 +0000 (19:42 -0400)
commit608c23e6bd9a43155ac1b2b1158d7476a88ee882
tree7429d28143cba19ec2db4f34fe19f767f416b30b
parentfecb2920c7a2bc2234cb3ae3d200ed19a804741e
Bug 6854: Correct a double password encryption problem in import_borrowers.pl

When the CSV file has no password column and no default value was set for
the password :
If we try to modify an existing user, the password from the BD is sent
to ModMember, which then encrypts the already-encrypted password a
second time.

http://bugs.koha-community.org/show_bug.cgi?id=6854

Signed-off-by: Katrin Fischer <Katrin.Fischer.83@web.de>
Confirmed bug on current master.
1) Import new patron with password provided
> OPAC login works
2) Overwrite patron record, password provided
> OPAC login works
3) Overwrite patron record, password not provided
Before patch: OPAC login broken, password in database changed
After patch: OPC login works with same password as before

Signed-off-by: Ian Walls <ian.walls@bywatersolutions.com>
Signed-off-by: Chris Cormack <chrisc@catalyst.net.nz>
(cherry picked from commit 906ef4b28c376254743f948808e8ae47bb6f0a01)

Signed-off-by: Chris Nighswonger <chris.nighswonger@gmail.com>
tools/import_borrowers.pl