POST web/register/create
Create a new registration for a user.
Note
This is a privileged endpoint. Only authorised queries will be processed.
Parameters
username
string
User IGN.
email
string
Email of the requested user.
password
string
Password that user has inserted.
confirmPassword
string
The same as password hopefully.
Examples
- Typical
- Never logged in
- Email in use
- Mismatched password
{
"username": "shadowolfyt",
"email": "[email protected]",
"password": "______",
"confirmPassword": "______"
}
Response
{
"success": true,
"message": "You are now successfully registered. Please go back and login to get started!"
}
A new account for user shadowolfyt has been created. This will initiate the verification process (TODO: Clarification on whether is the case).
When shadowolfyt has not played on the Minecraft server before
{
"username": "shadowolfyt",
"email": "[email protected]",
"password": "______",
"confirmPassword": "______"
}
Response
{
"success": false,
"message": "You have not logged in before. You are required to login before becoming a community site member. You can jump on and play here: <url>/play"
}
TODO
When the email [email protected]
is already being used for
another account.
{
"username": "shadowolfyt",
"email": "[email protected]",
"password": "______",
"confirmPassword": "______"
}
Response
{
"success": false,
"message": "The email you have provided is already in use, please enter another email and try again."
}
TODO
When the password and confirmPassword do not match.
{
"username": "shadowolfyt",
"email": "[email protected]",
"password": "___a___",
"confirmPassword": "___b___"
}
Response
{
"success": false,
"message": "The password you have provided does not match. Please try again."
}
TODO