2 factor authentication and user account lockout completed

This commit is contained in:
Shaun Walker
2022-03-03 09:12:37 -05:00
parent 28629aa836
commit 1cdc80e09b
12 changed files with 561 additions and 302 deletions

View File

@ -43,6 +43,21 @@ namespace Oqtane.Models
/// </summary>
public string LastIPAddress { get; set; }
/// <summary>
/// Indicates if the user requires 2 factor authentication to sign in
/// </summary>
public bool TwoFactorRequired { get; set; }
/// <summary>
/// Stores the 2 factor verification code
/// </summary>
public string TwoFactorCode { get; set; }
/// <summary>
/// The expiry date/time for the 2 factor verification code
/// </summary>
public DateTime? TwoFactorExpiry { get; set; }
/// <summary>
/// Reference to the <see cref="Site"/> this user belongs to.
/// </summary>
@ -97,11 +112,5 @@ namespace Oqtane.Models
{
get => "Users\\" + UserId.ToString() + "\\";
}
/// <summary>
/// Indicates if the user requires 2 factor authentication to sign in
/// </summary>
[NotMapped]
public bool TwoFactorEnabled { get; set; }
}
}