From: Frédérick Date: Wed, 19 Feb 2014 15:59:59 +0000 (-0500) Subject: Bug 8148: Only update the password if the LDAP password field was mapped X-Git-Url: http://git.rot13.org/?a=commitdiff_plain;h=f68d9e6ec4cd5fbc68d55f7b1e0e389e4755338f;p=koha.git Bug 8148: Only update the password if the LDAP password field was mapped http://bugs.koha-community.org/show_bug.cgi?id=8148 Signed-off-by: Martin Renvoize Signed-off-by: Dobrica Pavlinusic Signed-off-by: Tomas Cohen Arazi --- diff --git a/C4/Auth_with_ldap.pm b/C4/Auth_with_ldap.pm index 4f47f660e4..cf120e6919 100644 --- a/C4/Auth_with_ldap.pm +++ b/C4/Auth_with_ldap.pm @@ -318,8 +318,8 @@ sub update_local { ((map {$borrower->{$_}} @keys), $borrowerid) ); - # MODIFY PASSWORD/LOGIN - _do_changepassword($userid, $borrowerid, $password); + # MODIFY PASSWORD/LOGIN if password was mapped + _do_changepassword($userid, $borrowerid, $password) if $borrower->{'password'}; } 1;