refactor: change name enums

This commit is contained in:
2024-11-02 00:50:10 +03:00
parent eb272baa38
commit 23f74b3bdf
5 changed files with 11 additions and 12 deletions

View File

@ -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; }
}

View File

@ -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; }
}