store ssha512 password hash fix
This commit is contained in:
parent
12eca73c21
commit
9fc2991cf6
@ -52,8 +52,7 @@ public class User implements Serializable, LDAPBean {
|
|||||||
public void setAndValidatePassword(String password) throws SimplePasswordException, NoSuchAlgorithmException {
|
public void setAndValidatePassword(String password) throws SimplePasswordException, NoSuchAlgorithmException {
|
||||||
final PasswordValidator validator = new PasswordValidator();
|
final PasswordValidator validator = new PasswordValidator();
|
||||||
validator.validate(password);
|
validator.validate(password);
|
||||||
validator.createSaltedSHA512Hash(password);
|
this.password = validator.createSaltedSHA512Hash(password);
|
||||||
this.password = password;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public String getFirstname() {
|
public String getFirstname() {
|
||||||
|
Loading…
Reference in New Issue
Block a user