2024-03-02 00:43:56 +00:00
|
|
|
using OliverBooth.Common.Services;
|
2024-02-25 17:21:29 +00:00
|
|
|
|
2024-03-02 00:43:56 +00:00
|
|
|
namespace OliverBooth.Common.Data.Web.Users;
|
2024-02-25 17:21:29 +00:00
|
|
|
|
|
|
|
/// <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,
|
|
|
|
}
|