mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-22 06:30:59 +01:00
retunr flase, if password changing was not succesfull
This commit is contained in:
parent
1e1fe30c51
commit
13b082b088
@ -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;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user