Skip to content

registerGJAccount.php

This endpoint is used to register an account. In 2.2, this was replaced with register.php.

NOTE

This page is under the database/accounts directory.

Parameters

ParameterExplanationRequired
userNameThe username of the account to createYes
passwordThe password of the account to createYes
emailThe email of the account to createYes
secretAccount Secret: Wmfv3899gc9Yes

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)