2 factor authentication and user account lockout completed
This commit is contained in:
@ -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; }
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user