Commit graph

14 commits

Author SHA1 Message Date
a65c9259fa
dont cast email to string, use new value method 2026-04-26 10:19:38 +03:00
b1247d2fa1
add PasswordHasher interface with bcrypt implementation
Introduce an injectable abstraction over password_hash and
password_verify so callers can be swapped for a fast fake in tests
without paying bcrypt's CPU cost. The bcrypt implementation is a
direct passthrough using PASSWORD_DEFAULT, matching the prior inline
behavior, so existing stored hashes continue to verify.

Wired into the DI container alongside the other auth primitives
(Clock, TokenGenerator). No callers reference it yet, so production
behavior is unchanged.
2026-04-26 09:06:17 +03:00
c9d5ad37b8
add auth controller 2026-04-24 13:28:22 +03:00
bb4e27a45b
add admin middleware 2026-04-24 13:26:38 +03:00
d549cf914f
add auth middleware 2026-04-24 13:25:36 +03:00
05f4f334e6
add create session use case 2026-04-24 13:24:21 +03:00
de4d577781
add system clock 2026-04-24 13:23:38 +03:00
04712bdd2d
add clock interface 2026-04-24 13:23:30 +03:00
07040851ec
add random token generator 2026-04-24 13:23:12 +03:00
a0bea204b4
add token generator interface 2026-04-24 13:23:05 +03:00
762bbb7fda
add json session repository 2026-04-24 13:22:19 +03:00
503df8be7a
add session repository interface 2026-04-24 13:21:37 +03:00
b37e80147c
add create session dto 2026-04-24 13:21:28 +03:00
6fbdc82589
add session entity 2026-04-24 13:21:20 +03:00