NIHVIVO-2279 Setting the password via an email and a link will also remove the need to set it on next login.
This commit is contained in:
parent
2eb38516da
commit
0f00fd7a08
2 changed files with 2 additions and 0 deletions
|
@ -34,6 +34,7 @@ public class UserAccountsCreatePasswordPage extends
|
|||
public void createPassword() {
|
||||
userAccount.setMd5Password(Authenticator.applyMd5Encoding(newPassword));
|
||||
userAccount.setPasswordLinkExpires(0L);
|
||||
userAccount.setPasswordChangeRequired(false);
|
||||
userAccount.setStatus(Status.ACTIVE);
|
||||
userAccountsDao.updateUserAccount(userAccount);
|
||||
log.debug("Set password on '" + userAccount.getEmailAddress()
|
||||
|
|
|
@ -33,6 +33,7 @@ public class UserAccountsResetPasswordPage extends UserAccountsPasswordBasePage
|
|||
public void resetPassword() {
|
||||
userAccount.setMd5Password(Authenticator.applyMd5Encoding(newPassword));
|
||||
userAccount.setPasswordLinkExpires(0L);
|
||||
userAccount.setPasswordChangeRequired(false);
|
||||
userAccount.setStatus(Status.ACTIVE);
|
||||
userAccountsDao.updateUserAccount(userAccount);
|
||||
log.debug("Set password on '" + userAccount.getEmailAddress()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue