From e236c5b1f9a4a2678cb9ccd6c9a1414ef7e33d90 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=C5=A0est=C3=A1k=20V=C3=ADt?= Date: Fri, 6 Jan 2017 16:46:41 +0100 Subject: [PATCH] If authentication has failed, proper error message is used. --- app/controllers/AuthController.scala | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/controllers/AuthController.scala b/app/controllers/AuthController.scala index 43d2def..6480363 100644 --- a/app/controllers/AuthController.scala +++ b/app/controllers/AuthController.scala @@ -55,7 +55,7 @@ class AuthController @Inject() ( ) } yield res case Left(errorMessage) => - Future.successful(Redirect(routes.AuthController.signIn(callback)).flashing("error" -> Messages("invalid.credentials"))) + Future.successful(Redirect(routes.AuthController.signIn(callback)).flashing("error" -> errorMessage)) } } )