@Override
 protected String onLoginUserNotFound(Context context) {
   context
       .flash()
       .put(
           controllers.Application.FLASH_ERROR_KEY,
           Messages.get("playauthenticate.password.login.unknown_user_or_pw"));
   return super.onLoginUserNotFound(context);
 }
Exemplo n.º 2
0
 @Test
 public void testFlash() {
   Context ctx = new Context(new RequestBuilder().flash("a", "1").flash("b", "1").flash("b", "2"));
   assertEquals("1", ctx.flash().get("a"));
   assertEquals("2", ctx.flash().get("b"));
 }