Commit Graph

7 Commits

Author SHA1 Message Date
Artemy 7aa1b1831a Improve friends search and error handling in API
Refactored FriendsController to provide more precise error responses and input validation. Enhanced FriendsService to handle new exception types and improved user search logic. Added tests for user search, updated repository to throw on empty search results, and implemented User equality override. Cleaned up Program.cs controller JSON options.
2025-06-30 12:47:53 +07:00
Artemy ec44347bbe Add username validation and initial friends feature
Introduced a UsernameValidator with Cyrillic and length checks, integrated into AuthService and registration flow. Added InvalidUsernameException and related interface. Updated User model to support friend requests, added FriendsController (stub), and configured Friendship entity in EF Core. Adjusted UserValidator max name length and removed navigation properties from PrivateChat.
2025-06-27 16:36:56 +07:00
Artemy ce013eae49 Registration rework
+ InvitesRepository
+ AdminsRepository
+ rework jwt
2025-06-24 14:27:08 +07:00
Artemy 7d518c0882 AuthController work 2025-06-18 16:55:19 +07:00
Artemy 22de0e9630 UserValidatorTests 2025-06-17 21:24:54 +07:00
Artemy 70e46e7648 more tests for user rep 2025-06-17 17:37:10 +07:00
Artemy d62c38db51 DbGovor init 2025-06-16 22:31:45 +07:00