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:
j2blake 2011-06-10 16:14:14 +00:00
parent 2eb38516da
commit 0f00fd7a08
2 changed files with 2 additions and 0 deletions

View file

@ -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()

View file

@ -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()