]> 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 Cormack <chrisc@catalyst.net.nz>
Thu, 20 Oct 2011 15:47:05 +0000 (04:47 +1300)
commit906ef4b28c376254743f948808e8ae47bb6f0a01
treeec9cf65e8e0ba75c9476184e541643f117301b18
parenta7ee2993f02fb45f704c92ffdc49f840e05f5bd0
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>
tools/import_borrowers.pl