Implemented logout

This commit is contained in:
2026-07-10 02:41:31 +03:00
parent 5aa6e30c90
commit 0f7925b56c
5 changed files with 62 additions and 4 deletions
+5
View File
@@ -0,0 +1,5 @@
-- !Ups
ALTER TABLE auth_tokens ADD CONSTRAINT auth_tokens_token_unique UNIQUE (token);
-- !Downs
ALTER TABLE auth_tokens DROP CONSTRAINT auth_tokens_token_unique;
+3
View File
@@ -7,6 +7,9 @@
GET / controllers.HomeController.index()
POST /login controllers.authentication.SessionsController.login()
# TODO: enable it later
+nocsrf
DELETE /logout controllers.authentication.SessionsController.logout()
# Map static resources from the /public folder to the /assets URL path
GET /assets/*file controllers.Assets.versioned(path="/public", file: Asset)