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
| Parameter | Explanation | Required |
|---|---|---|
userName | The username of the account to create | Yes |
password | The password of the account to create | Yes |
email | The email of the account to create | Yes |
secret | Account Secret: Wmfv3899gc9 | Yes |
Response
Successful Request
1Failed Request
| Error Code | Meaning |
|---|---|
-1 | Generic Error |
-2 | Username taken |
-3 | Email taken |
-4 | Username is longer than 20 characters |
-5 | Invalid Password |
-6 | Invalid Email |
-7 | Password confirmation does not match (only used internally, not sent by servers) |
-8 | Password too short (under 6 characters) |
-9 | Username too short (under 3 characters) |
-99 | Email confirmation does not match (only used internally, not sent by servers) |
