Commit graph

7 commits

Author SHA1 Message Date
9e70fae38d
test auth controller login, logout, and me methods 2026-05-20 10:22:52 +03:00
f6a33cf620
delete backend, starting over 2026-05-18 21:18:20 +03:00
e2b69632f6
refactor: remove redundant guard from logout controller
The guard is now in the Logout use case. Controller just passes the raw cookie value through.
2026-05-17 10:09:42 +03:00
722c5303df
refactor: remove unused response param from controller methods 2026-05-17 10:04:15 +03:00
9661452c75
refactor: extract error response helper and slim json response
Replace multiple catch blocks with single catch(Throwable) funneled through errorResponse() matching the CompanyController pattern. Also clean jsonResponse to accept data+status only, instantiating Response internally.
2026-05-17 09:59:32 +03:00
56ddba707d
format: fix psr12 style issues
phpcbf auto-fixes: string concatenation spacing, single-line class braces, closing brace placement.
2026-05-17 09:45:26 +03:00
e54197f8a5
implement auth controller
Green phase: AuthController handles login (authenticate + create session + set cookie), logout (delete session + clear cookie), and me (return user from request attribute).
2026-05-17 09:45:25 +03:00