Class AccountRegistrationService.RegistrationResult
- Namespace
- FishMMO.ControlPanel.Services
- Assembly
- FishMMO-ControlPanel.dll
Outcome of a registration attempt.
public sealed record AccountRegistrationService.RegistrationResult : IEquatable<AccountRegistrationService.RegistrationResult>
- Inheritance
-
AccountRegistrationService.RegistrationResult
- Implements
- Inherited Members
Constructors
RegistrationResult(bool, string, string, bool, AccountVerificationChannels, string, IReadOnlyList<string>, bool, string, string)
Outcome of a registration attempt.
public RegistrationResult(bool Ok, string Error, string Field, bool AutoVerified, AccountVerificationChannels VerificationPending, string OtpauthUri, IReadOnlyList<string> RecoveryCodes, bool BetaRedeemed, string BetaWarning, string TwoFactorWarning = null)
Parameters
OkboolErrorstringFieldstringThe form field an error belongs to, when it belongs to one.
AutoVerifiedboolVerificationPendingAccountVerificationChannelsChannels a code was sent on; any one of them verifies the account.
OtpauthUristringRecoveryCodesIReadOnlyList<string>BetaRedeemedboolBetaWarningstringSet when the account exists but the beta code could not be attached to it.
TwoFactorWarningstringSet when the account exists but two-factor could not be set up on it.
Properties
AutoVerified
public bool AutoVerified { get; init; }
Property Value
BetaRedeemed
public bool BetaRedeemed { get; init; }
Property Value
BetaWarning
Set when the account exists but the beta code could not be attached to it.
public string BetaWarning { get; init; }
Property Value
Error
public string Error { get; init; }
Property Value
Field
The form field an error belongs to, when it belongs to one.
public string Field { get; init; }
Property Value
Ok
public bool Ok { get; init; }
Property Value
OtpauthUri
public string OtpauthUri { get; init; }
Property Value
RecoveryCodes
public IReadOnlyList<string> RecoveryCodes { get; init; }
Property Value
TwoFactorWarning
Set when the account exists but two-factor could not be set up on it.
public string TwoFactorWarning { get; init; }
Property Value
VerificationPending
Channels a code was sent on; any one of them verifies the account.
public AccountVerificationChannels VerificationPending { get; init; }