Package providers

Examples of providers.MyUsernamePasswordAuthUser


      final User u = ta.targetUser;
      try {
        // Pass true for the second parameter if you want to
        // automatically create a password and the exception never to
        // happen
        u.resetPassword(new MyUsernamePasswordAuthUser(newPassword),
            false);
      } catch (final RuntimeException re) {
        flash(Application.FLASH_MESSAGE_KEY,
            Messages.get("playauthenticate.reset_password.message.no_password_account"));
      }
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

Related Classes of providers.MyUsernamePasswordAuthUser

Copyright © 2018 www.massapicom. 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.