Files
Govor/Govor.Domain/Models/Users/User.cs
T
Artemy a3401ceedf Add SRP password recovery and E2EE reset
Add proof-based password registration, login, enrollment, and change flows, with rate limiting and encrypted recovery-key envelopes. Support explicit E2EE identity resets while preserving historical signer verification, and document and test the new recovery workflows.
2026-10-24 22:19:08 +07:00

30 lines
908 B
C#

using System.ComponentModel.DataAnnotations;
namespace Govor.Domain.Models.Users;
public class User
{
public Guid Id {get; set;}
public string Username {get; set;}
public string Description {get; set;}
public string PasswordHash {get; set;}
public string? SrpSalt { get; set; }
public string? SrpIdentity { get; set; }
public string? SrpVerifier { get; set; }
public long CredentialVersion { get; set; }
public Guid IconId {get; set;}
public DateOnly CreatedOn {get; set;}
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();
public override bool Equals(object? obj)
{
var user = obj as User;
return Id == user.Id;
}
}