diff options
author | Pacien TRAN-GIRARD | 2015-02-08 20:03:02 +0100 |
---|---|---|
committer | Pacien TRAN-GIRARD | 2015-02-08 20:03:02 +0100 |
commit | c00cb6ae05f548f7ae270a93ad44f57207380406 (patch) | |
tree | d4fff3d2ec28fcfb5be4e0eed2621f8ac1462b74 /app/controllers/Authentication.scala | |
parent | 00443f9d168dc4fc272dee84c9ab8641062bf259 (diff) | |
download | minibay-c00cb6ae05f548f7ae270a93ad44f57207380406.tar.gz |
Put views in packages
Diffstat (limited to 'app/controllers/Authentication.scala')
-rw-r--r-- | app/controllers/Authentication.scala | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/controllers/Authentication.scala b/app/controllers/Authentication.scala index f9772e2..b7ee724 100644 --- a/app/controllers/Authentication.scala +++ b/app/controllers/Authentication.scala | |||
@@ -56,7 +56,7 @@ object Authentication extends Controller { | |||
56 | 56 | ||
57 | def login = Auth { implicit request => | 57 | def login = Auth { implicit request => |
58 | if (request.account.isEmpty) { | 58 | if (request.account.isEmpty) { |
59 | Ok(views.html.pages.loginForm(loginForm)) | 59 | Ok(views.html.pages.auth.loginForm(loginForm)) |
60 | } else { | 60 | } else { |
61 | Redirect(routes.Application.index()) | 61 | Redirect(routes.Application.index()) |
62 | } | 62 | } |
@@ -66,7 +66,7 @@ object Authentication extends Controller { | |||
66 | DB.withSession { implicit session => | 66 | DB.withSession { implicit session => |
67 | loginForm.bindFromRequest.fold( | 67 | loginForm.bindFromRequest.fold( |
68 | formWithErrors => { | 68 | formWithErrors => { |
69 | BadRequest(views.html.pages.loginForm(formWithErrors)) | 69 | BadRequest(views.html.pages.auth.loginForm(formWithErrors)) |
70 | }, | 70 | }, |
71 | validForm => { | 71 | validForm => { |
72 | val userUuid: String = Tables.Users.filter(_.username === validForm.username).map(_.uuid).first.run | 72 | val userUuid: String = Tables.Users.filter(_.username === validForm.username).map(_.uuid).first.run |