Commit graph

8 commits

Author SHA1 Message Date
632085f5b6
inject PasswordHasher into CreateUser and AuthenticateUser
Replace direct password_hash and password_verify calls with the
injected PasswordHasher so the bcrypt cost can be substituted out
in tests. Production wiring is handled by the container's autowiring
of BcryptPasswordHasher.

This commit alone breaks the test suite because the existing tests
construct these use cases without the new dependency; the next
commit restores green by introducing FakePasswordHasher.
2026-04-26 09:06:21 +03:00
6c5833af5e
return user from create user use case 2026-04-24 13:27:15 +03:00
0f179e53c2
hash password in create user 2026-04-24 13:18:44 +03:00
96ad78425f
reject duplicate email in create user 2026-04-24 13:17:11 +03:00
4157710187
pass is admin through create user 2026-04-24 13:14:57 +03:00
03e4781799
add @throws BadRequestException to create user 2026-04-19 23:23:26 +03:00
90a9002df0
add null guard in create user use case 2026-04-19 23:13:57 +03:00
f18d958481
create user use case with request and dto 2026-02-14 21:58:10 +02:00