Table of Contents

Enum ClientAuthenticationResult

Namespace
FishMMO.Auth.Core
Assembly
FishMMO-AuthShared.dll

Enum representing possible outcomes of client authentication attempts. Used to communicate authentication status and errors to the client.

public enum ClientAuthenticationResult : byte

Fields

AccountCreated = 0

Account was successfully created.

AccountUnverified = 15

Account email has not been verified. The user must enter the verification code sent during registration.

AccountVerified = 16

Account has been successfully verified with the correct verification code.

AlreadyOnline = 4

Account is already online and cannot log in again.

Banned = 5

Account is banned and cannot log in.

InvalidUsernameOrPassword = 3

Username or password is invalid.

LoginSuccess = 6

Login was successful.

NoCharacterSelected = 11

No character is selected on the account. The client must select a character before connecting to a world server.

SceneLoginSuccess = 8

Login to the scene was successful.

ServerBusy = 10

Server is busy and cannot process the request at this time.

ServerFull = 9

Server is full and cannot accept new connections.

ServerLocked = 21

The server is locked for maintenance and is not accepting this account.

Distinct from ServerFull, which it used to be reported as. "Full" tells the player to try again shortly, which is exactly wrong for a lock: capacity clears on its own, a maintenance lock does not. A locked world still admits accounts above AccessLevel.Player, so receiving this also means the account is an ordinary player one.

SrpProof = 2

SRP proof step required.

SrpVerify = 1

SRP verification step required.

TokenDecryptFailed = 19

Client-only: Auth token decryption failed after otherwise-successful SRP login. The user is authenticated at the Login server but will be unable to connect to World/Scene servers until re-authenticating. Not sent over the wire.

TokenExpired = 13

The authentication token has expired.

TokenInvalid = 12

The authentication token is invalid (malformed, bad signature, or not found).

TokenRevoked = 14

The authentication token has been revoked.

TwoFactorInvalid = 18

The submitted TOTP code was invalid or has already been used (anti-replay).

TwoFactorRequired = 17

Login requires TOTP two-factor authentication. The client must provide a valid TOTP code.

VersionMismatch = 20

Server rejected the client because the game version does not match. The client must update (or downgrade) to match the server's version.

WorldLoginSuccess = 7

Login to the world server was successful.