retunr flase, if password changing was not succesfull

This commit is contained in:
Lars Kneschke 2001-01-04 20:53:50 +00:00
parent 1e1fe30c51
commit 13b082b088

View File

@ -52,9 +52,10 @@
$encrypted_passwd = $phpgw->common->encrypt_password($new_passwd); $encrypted_passwd = $phpgw->common->encrypt_password($new_passwd);
$entry["userpassword"] = $encrypted_passwd; $entry["userpassword"] = $encrypted_passwd;
#$entry["phpgw_lastpasswd_change"] = time(); #$entry["phpgw_lastpasswd_change"] = time();
$dn = $phpgw_info["user"]["account_dn"]; $dn = $phpgw_info["user"]["account_dn"];
@ldap_modify($ldap, $dn, $entry);
if (!@ldap_modify($ldap, $dn, $entry)) return false;
return $encrypted_passwd; return $encrypted_passwd;
} }
} }