18 lines
497 B
C#
Raw Normal View History

namespace Mirea.Api.Security.Common.Domain;
2024-11-02 00:50:10 +03:00
public enum TwoFactorAuthenticator
{
None,
Totp
}
public class User
{
public required int Id { get; set; }
public required string Username { get; set; }
public required string Email { get; set; }
public required string PasswordHash { get; set; }
public required string Salt { get; set; }
2024-11-02 00:50:10 +03:00
public required TwoFactorAuthenticator TwoFactorAuthenticator { get; set; }
public string? SecondFactorToken { get; set; }
}