fixed password attribute
This commit is contained in:
parent
a6952f1d9f
commit
3933081282
|
@ -2849,11 +2849,11 @@ class posixAccount extends baseModule implements passwordService {
|
||||||
$pwdPolicyResult = checkPasswordStrength($_POST['posixAccount_password'], $userName, $additionalAttrs);
|
$pwdPolicyResult = checkPasswordStrength($_POST['posixAccount_password'], $userName, $additionalAttrs);
|
||||||
if ($pwdPolicyResult === true) {
|
if ($pwdPolicyResult === true) {
|
||||||
if (empty($this->selfServiceSettings->moduleSettings['posixAccount_useOldPwd']) || ($this->selfServiceSettings->moduleSettings['posixAccount_useOldPwd'][0] != 'true')) {
|
if (empty($this->selfServiceSettings->moduleSettings['posixAccount_useOldPwd']) || ($this->selfServiceSettings->moduleSettings['posixAccount_useOldPwd'][0] != 'true')) {
|
||||||
$return['mod'][$this->getPasswordAttrName()][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings->moduleSettings['posixAccount_pwdHash'][0]);
|
$return['mod']['userPassword'][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings->moduleSettings['posixAccount_pwdHash'][0]);
|
||||||
}
|
}
|
||||||
else {
|
else {
|
||||||
$return['add'][$this->getPasswordAttrName()][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings->moduleSettings['posixAccount_pwdHash'][0]);
|
$return['add']['userPassword'][0] = pwd_hash($_POST['posixAccount_password'], true, $this->selfServiceSettings->moduleSettings['posixAccount_pwdHash'][0]);
|
||||||
$return['del'][$this->getPasswordAttrName()][0] = $_POST['posixAccount_passwordOld'];
|
$return['del']['userPassword'][0] = $_POST['posixAccount_passwordOld'];
|
||||||
}
|
}
|
||||||
$return['info']['userPasswordClearText'][0] = $_POST['posixAccount_password'];
|
$return['info']['userPasswordClearText'][0] = $_POST['posixAccount_password'];
|
||||||
if (isset($attributes['shadowLastChange'][0])) {
|
if (isset($attributes['shadowLastChange'][0])) {
|
||||||
|
|
Loading…
Reference in New Issue