-
Notifications
You must be signed in to change notification settings - Fork 1
ForgotPasswordController
Paulina Szulc edited this page Jun 23, 2025
·
1 revision
This page contains documentation for the ForgotPasswordController class, which handles the password reset flow.
Base Path: /api/v1/forgotPassword
Package: dev.goral.rpghandyhelper.user.additional
| HTTP Method | Path | Description |
|---|---|---|
| PUT | /reset |
Sends reset password email |
| GET | /validateToken |
Validates the password reset token |
| PUT | /changePassword |
Changes the user's password using token |
- token (String): Token used to verify the identity of the user for password reset.
- email (String): User's email address.
- password (String): New password to be set.
- message (String): Describes the result of the operation.
- error (Integer): HTTP status code.
- timestamp (String): Time the response was generated.
Method: PUT
Path: /reset
{
"email": "user@example.com"
}{
"message": "E-mail z linkiem do resetowania hasła został wysłany.",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Missing or malformed email field. -
404 Not Found: User with provided email does not exist. -
403 Forbidden: User account is not enabled.
Method: GET
Path: /validateToken
token=example-reset-token
{
"message": "Token jest poprawny.",
"error": 200,
"timestamp": "..."
}-
404 Not Found: Token does not match any user.
Method: PUT
Path: /changePassword
token=example-reset-token
{
"password": "StrongP@ssw0rd"
}{
"message": "Hasło zostało zmienione.",
"error": 200,
"timestamp": "..."
}-
400 Bad Request: Password does not meet requirements. -
404 Not Found: Token does not match any user.
- Minimum 8 characters
- At least one uppercase letter
- At least one lowercase letter
- At least one digit
- At least one special character
- Missing Fields: Ensure that all required fields are included in the request body.
- Token Issues: Make sure the token is valid and was received via a password reset email.
- Password Strength: Ensure the new password meets all complexity requirements.
-
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