IDEMPIERE-3699 HashPasswords process should not update DatePasswordChanged

This commit is contained in:
Nicolas Micoud 2018-04-27 10:41:17 +02:00
parent 05dc56dc0e
commit 5577aa973b
1 changed files with 2 additions and 3 deletions

View File

@ -936,15 +936,14 @@ public class MUser extends X_AD_User
}
pwdrule.validate((getLDAPUser() != null ? getLDAPUser() : getName()), getPassword(), passwordHistorys);
}
setDatePasswordChanged(new Timestamp(new Date().getTime()));
}
// Hash password - IDEMPIERE-347
boolean hash_password = MSysConfig.getBooleanValue(MSysConfig.USER_PASSWORD_HASH, false);
if (hash_password)
setPassword(getPassword());
setDatePasswordChanged(new Timestamp(new Date().getTime()));
}
return true;