コード例 #1
0
ファイル: SettingsUser.java プロジェクト: wkm/Axirassa
  @CommitAfter
  public Object onSuccessFromPasswordForm() throws IOException, HornetQException {
    user.createPassword(newPassword);
    passwordChanged = true;

    emailNotify.startMessage(EmailTemplate.USER_CHANGE_PASSWORD);
    emailNotify.setToAddress(userEmailAddressDAO.getPrimaryEmail(user).getEmail());
    emailNotify.send();

    return this;
  }
コード例 #2
0
ファイル: SettingsUser.java プロジェクト: wkm/Axirassa
 private void validateCurrentPassword() throws NoSaltException {
   if (!user.matchPassword(currentPassword))
     passwordForm.recordError(currentPasswordField, "Incorrect password");
 }