Polianin Nikita
cd6f25deba
All logic related to token manipulation has been transferred to the AuthService. Also added TOTP 2FA and rethought the logic of logging into the application
18 lines
467 B
C#
18 lines
467 B
C#
namespace Mirea.Api.Security.Common.Domain;
|
|
|
|
public enum SecondFactor
|
|
{
|
|
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; }
|
|
public required SecondFactor SecondFactor { get; set; }
|
|
public string? SecondFactorToken { get; set; }
|
|
} |