-
Notifications
You must be signed in to change notification settings - Fork 1
RegisterController
Paulina Szulc edited this page Jun 23, 2025
·
1 revision
This page contains documentation for the RegisterController class, which handles user registration, availability checks, and email confirmation.
Base Path: /api/v1/register
Package: dev.goral.rpghandyhelper.user.register
No authentication is required for these endpoints.
| HTTP Method | Path | Description |
|---|---|---|
| POST | /signup |
Registers a new user |
| GET | /confirm |
Confirms user email with a token |
| GET | /checkUsername |
Checks if username is available |
| GET | /checkEmail |
Checks if email is available |
- username (String): Desired username. Required.
- firstName (String): First name of the user. Required.
- surname (String): Surname of the user. Required.
- email (String): User’s email address. Required.
- password (String): User password. Must meet complexity rules. Required.
- captcha (String): CAPTCHA response from frontend. Required.
- message (String): Describes the result of the operation.
- error (Integer): HTTP status code.
- timestamp (String): Time the response was generated.
Method: POST
Path: /signup
{
"message": "Konto zostało utworzone. Sprawdź swoją skrzynkę e-mail, aby aktywować konto.",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Invalid CAPTCHA, username/email already taken, or weak password. "Recaptcha verification failed""Nazwa użytkownika jest już zajęta.""Ten adres e-mail jest już zarejestrowany.""Hasło musi zawierać co najmniej 8 znaków..."
Method: GET
Path: /confirm
-
token(String): Email verification token
{
"message": "Konto zostało aktywowane. Możesz się teraz zalogować.",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Token is invalid or expired. "Nieprawidłowy lub nieaktywny token weryfikacyjny"
Method: GET
Path: /checkUsername
-
username(String): Username to check
{
"message": "Nazwa użytkownika jest dostępna.",
"error": 200,
"timestamp": "..."
}{
"message": "Nazwa użytkownika jest już zajęta.",
"error": 409,
"timestamp": "..."
}Method: GET
Path: /checkEmail
-
email(String): Email to check
{
"message": "Adres e-mail jest dostępny.",
"error": 200,
"timestamp": "..."
}{
"message": "Ten adres e-mail jest już zarejestrowany.",
"error": 409,
"timestamp": "..."
}- Weak Password: Ensure the password meets complexity requirements (min. 8 chars, digit, uppercase, lowercase, special character).
- Email/Username Taken: Choose another email or username.
- Recaptcha Error: Make sure the CAPTCHA is completed correctly.
- Token Issues: Confirm you are using the correct and active token from the verification email.
-
Home
- GameNoteController
- SchedulerController
- UserController
- ForgotPasswordController
- RegisterController
- RpgSystemsController
- GameController
- GameRoomController
- AmmunitionController
- ArmorsController
- ClassesController
- CriticalInjuriesController
- CyberwaresController
- EquipmentsController
- SkillsController
- StatsController
- WeaponsController
- WeaponModsController
- CustomAmmunitionController
- CustomArmorsController
- CustomCriticalInjuriesController
- CustomCyberwaresController
- CustomEquipmentsController
- CustomWeaponModsController
- CustomWeaponsController
- CharacterAmmunitionController
- CharacterArmorController
- CharacterClassesController
- CharacterCriticalInjuriesController
- CharacterCustomAmmunitionController
- CharacterCustomArmorsController
- CharacterCustomCriticalInjuriesController
- CharacterCustomCyberwareController
- CharacterCustomEquipmentController
- CharacterCustomWeaponController
- CharacterCyberwareController
- CharacterEnemiesController
- CharacterEquipmentController
- CharacterFriendsController
- CharacterLifePathController
- CharacterOtherInfoController
- CharacterSkillsController
- CharacterStatsController
- CharacterTragicLoveStoryController
- CharacterWeaponsController
- CharacterWeaponModsController