Skip to content

registerGJAccount.php ​

This endpoint is used to register an account. In 2.2, it was replaced with register.php, but is still functional.

NOTE

This page is under the database/accounts directory.

Parameters ​

ParameterExplanation
userName *The username of the account to create
password *The password of the account to create
email *The email of the account to create
secret *Account Secret: Wmfv3899gc9
rsession *The session token for registering an account, obtained from openedRegister.php

Response ​

Successful Request

1

Failed Request

Error CodeMeaning
-1Generic Error (displays "Something went wrong." ingame)
-2Username is already in use
-3Email is already in use
-4Username is longer than 20 characters (displays "Username is invalid" ingame)
-5Password is invalid
-6Email is invalid
-7Password confirmation does not match (only used internally, not sent by servers)
-8Password too short (under 6 characters)
-9Username too short (under 3 characters)
-99Email confirmation does not match (only used internally, not sent by servers)