Table of Contents

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

Ok bool
Error string
Field string

The form field an error belongs to, when it belongs to one.

AutoVerified bool
VerificationPending AccountVerificationChannels

Channels a code was sent on; any one of them verifies the account.

OtpauthUri string
RecoveryCodes IReadOnlyList<string>
BetaRedeemed bool
BetaWarning string

Set when the account exists but the beta code could not be attached to it.

TwoFactorWarning string

Set when the account exists but two-factor could not be set up on it.

Properties

AutoVerified

public bool AutoVerified { get; init; }

Property Value

bool

BetaRedeemed

public bool BetaRedeemed { get; init; }

Property Value

bool

BetaWarning

Set when the account exists but the beta code could not be attached to it.

public string BetaWarning { get; init; }

Property Value

string

Error

public string Error { get; init; }

Property Value

string

Field

The form field an error belongs to, when it belongs to one.

public string Field { get; init; }

Property Value

string

Ok

public bool Ok { get; init; }

Property Value

bool

OtpauthUri

public string OtpauthUri { get; init; }

Property Value

string

RecoveryCodes

public IReadOnlyList<string> RecoveryCodes { get; init; }

Property Value

IReadOnlyList<string>

TwoFactorWarning

Set when the account exists but two-factor could not be set up on it.

public string TwoFactorWarning { get; init; }

Property Value

string

VerificationPending

Channels a code was sent on; any one of them verifies the account.

public AccountVerificationChannels VerificationPending { get; init; }

Property Value

AccountVerificationChannels