Enum ClientAuthenticationResult
Enum representing possible outcomes of client authentication attempts. Used to communicate authentication status and errors to the client.
public enum ClientAuthenticationResult : byte
Fields
AccountCreated = 0Account was successfully created.
AccountDetailsInvalid = 26Account creation was refused because an optional detail (phone number, real name, country, address, referral account or the verification choice) failed the server's rules. The client validates the same rules first, so this is normally unreachable.
AccountUnverified = 15The account has not been verified. The user must enter a verification code: any one of the codes sent by email, by SMS or by Discord DM verifies it.
Sent only after a correct SRP proof, so it tells nobody without the password that the account exists. A wrong code is answered with InvalidUsernameOrPassword, like every other refusal.
AccountVerified = 16Account has been successfully verified with the correct verification code.
AlreadyOnline = 4Account is already online and cannot log in again.
Banned = 5Account is banned and cannot log in.
BetaAccessRequired = 23The server is in a closed test and this account holds no beta access. Sent only after a correct SRP proof, never before, so it cannot be used to learn which accounts exist.
Staff accounts (GameMaster and above) are never refused this way. A player can redeem a beta code in the Control Panel and sign in again.
BetaCodeInvalid = 25Account creation was refused because the server is in a closed test and the beta code was missing or could not be redeemed. One answer for every bad-code case — unknown, revoked, expired, used up, malformed — so a script cannot tell a real code from a guess.
InvalidUsernameOrPassword = 3Username or password is invalid.
LoginSuccess = 6Login was successful.
NoCharacterSelected = 11No character is selected on the account. The client must select a character before connecting to a world server.
PhoneUnverified = 22Legacy: the SMS code was the one outstanding. Current servers answer every unverified sign-in with AccountUnverified, because any one code verifies the account.
Kept so the values after it do not move, and still handled by clients exactly as AccountUnverified.
SceneLoginSuccess = 8Login to the scene was successful.
ServerBusy = 10Server is busy and cannot process the request at this time.
ServerFull = 9Server is full and cannot accept new connections.
ServerLocked = 21The 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 = 2SRP proof step required.
SrpVerify = 1SRP verification step required.
TokenDecryptFailed = 19Client-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 = 13The authentication token has expired.
TokenInvalid = 12The authentication token is invalid (malformed, bad signature, or not found).
TokenRevoked = 14The authentication token has been revoked.
TwoFactorExpired = 27The two-factor step of this sign-in has ended without signing in, and the server is closing the connection: the prompt went unanswered for the server's window, or the code just sent was wrong and was the last attempt one sign-in allows. The client must go back to the sign-in form; signing in again starts a fresh prompt.
One value for both endings, and the client tells them apart without a timer of its own. The server only lets a prompt's window run out while no code from it is being checked, so an expiry that arrives unasked is the window, and one that answers a code the client sent is the attempt limit. A code sent in the very last moment of a window can cross the expiry on the wire and read as the attempt limit; the answer to both is the same, sign in again.
Not TwoFactorLocked, which is an account-wide lock with a wait. Before this value existed the server closed the connection without a word in both cases. A client that predates it treats it as an unrecognised result.
TwoFactorInvalid = 18The submitted TOTP code was invalid or has already been used (anti-replay).
TwoFactorLocked = 24Two-factor sign-in for this account is locked after repeated wrong codes. The password was already proven, so the lock is reported explicitly; the broadcast carries how long it has left. The client must end the attempt rather than prompt for another code.
TwoFactorRequired = 17Login requires TOTP two-factor authentication. The client must provide a valid TOTP code.
VersionMismatch = 20Server rejected the client because the game version does not match. The client must update (or downgrade) to match the server's version.
WorldLoginSuccess = 7Login to the world server was successful.