refactor: change name enums
This commit is contained in:
@ -17,6 +17,6 @@ internal class FirstAuthToken
|
||||
public string Ip { get; set; } = null!;
|
||||
public string Fingerprint { get; set; } = null!;
|
||||
public required string UserId { get; set; }
|
||||
public required SecondFactor SecondFactor { get; set; }
|
||||
public required TwoFactorAuthenticator TwoFactorAuthenticator { get; set; }
|
||||
public string? Secret { get; set; }
|
||||
}
|
@ -1,6 +1,6 @@
|
||||
namespace Mirea.Api.Security.Common.Domain;
|
||||
|
||||
public enum SecondFactor
|
||||
public enum TwoFactorAuthenticator
|
||||
{
|
||||
None,
|
||||
Totp
|
||||
@ -13,6 +13,6 @@ public class User
|
||||
public required string Email { get; set; }
|
||||
public required string PasswordHash { get; set; }
|
||||
public required string Salt { get; set; }
|
||||
public required SecondFactor SecondFactor { get; set; }
|
||||
public required TwoFactorAuthenticator TwoFactorAuthenticator { get; set; }
|
||||
public string? SecondFactorToken { get; set; }
|
||||
}
|
Reference in New Issue
Block a user