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.
This commit is contained in:
Artemy
2025-06-27 16:36:56 +07:00
parent 9b9cd73a96
commit ec44347bbe
14 changed files with 201 additions and 6 deletions
+2
View File
@@ -13,4 +13,6 @@ public class User
public DateTime WasOnline {get; set;}
public Guid InviteId {get; set;}
public Invitation? Invite { get; set; }
public List<Friendship> SentFriendRequests { get; set; } = new();
public List<Friendship> ReceivedFriendRequests { get; set; } = new();
}