oliverbooth.dev/OliverBooth/Data/Web/MfaRequestResult.cs

30 lines
609 B
C#
Raw Normal View History

2024-02-25 17:21:29 +00:00
using OliverBooth.Services;
namespace OliverBooth.Data.Web;
/// <summary>
/// An enumeration of possible results for <see cref="IUserService.VerifyMfaRequest" />.
/// </summary>
public enum MfaRequestResult
{
/// <summary>
/// The request was successful.
/// </summary>
Success,
/// <summary>
/// The wrong code was entered.
/// </summary>
InvalidTotp,
/// <summary>
/// The MFA token has expired.
/// </summary>
TokenExpired,
/// <summary>
/// Too many attempts were made by the user.
/// </summary>
TooManyAttempts,
}