Package models

Examples of models.User.changePassword()


                flash("error", Messages.get("error.technical"));
                return badRequest(reset.render(resetForm, token));
            }

            String password = resetForm.get().inputPassword;
            user.changePassword(password);

            // Send email saying that the password has just been changed.
            sendPasswordChanged(user);
            flash("success", Messages.get("resetpassword.success"));
            return ok(reset.render(resetForm, token));
View Full Code Here


      // User did not select whether to link or not link
      return badRequest(password_change.render(filledForm));
    } else {
      final User user = Application.getLocalUser(session());
      final String newPassword = filledForm.get().password;
      user.changePassword(new MyUsernamePasswordAuthUser(newPassword),
          true);
      flash(Application.FLASH_MESSAGE_KEY,
          Messages.get("playauthenticate.change_password.success"));
      return redirect(routes.Application.profile());
    }
View Full Code Here

TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.