public Result resetPasswordRequestSuccessfulPage(Form<?> form) {
   FlashMessages.flashInfo(
       FLASH_PASSWORD_REQUEST_SENT,
       "An email with password reset instructions has been sent to '"
           + form.apply(PasswordResetRequestData.EMAIL_FIELD).value()
           + "'.");
   return redirect(WelcomeController.welcome());
 }
Beispiel #2
0
 public static List<FastSubject> getFastSubjects(Form<?> form) {
   List<FastSubject> fastSubjects = new ArrayList<>();
   for (FastSubject fastSubject : FastSubject.find.all()) {
     if (form.apply(fastSubject.fastId).value() != null) {
       Logger.info("Adding subject " + fastSubject);
       fastSubjects.add(fastSubject);
     }
   }
   return fastSubjects;
 }