store ssha512 password hash fix

This commit is contained in:
Peter Hormanns 2020-03-31 20:41:13 +02:00
parent 12eca73c21
commit 9fc2991cf6

View File

@ -52,8 +52,7 @@ public class User implements Serializable, LDAPBean {
public void setAndValidatePassword(String password) throws SimplePasswordException, NoSuchAlgorithmException {
final PasswordValidator validator = new PasswordValidator();
validator.validate(password);
validator.createSaltedSHA512Hash(password);
this.password = password;
this.password = validator.createSaltedSHA512Hash(password);
}
public String getFirstname() {