Forgot password
Used to reset a password for the user.
Send forgot password email#
URL: /api/auth/forgotPassword/sendEmail
Method: POST
Auth required: No
Data constraints
Data example
Success response#
Condition: Username exists and user has email adresses linked to his account.
Code: 200
Content example
Error response#
Unknown username#
Condition: User with this username does not exist
Code: 404
Content example
No email address(es) linked to this account#
Condition: User does not have email address(es) linked to his account.
Code: 400
Content example
Check code#
URL: /api/auth/forgotPassword/checkCode
Method: POST
Auth required: No
Data constraints
Data example
Success response#
Condition: Code is correct, rate limit not exceeded, username exists
Code: 200
Content example
Error response#
Incorrect code#
Condition: Code is incorrect
Code: 400
Content example
Unknown username#
Condition: User with this username does not exist
Code: 404
Content example
Rate limit exceeded#
Condition: After 12 tries the rate limit will be exceeded.
Code: 400
Content example
After exceeding the rate limit there has to be requested a new code via this request.
No password reset requested for this user#
Condition: There was not requested a password reset for this account
Code: 400
Content example
Reset password#
URL: /api/auth/forgotPassword/resetPassword
Method: POST
Auth required: No
Data constraints
Data example
Success response#
Condition: Code is correct, rate limit not exceeded, username exists
Code: 200
Content example
Error response#
Incorrect code#
Condition: Code is incorrect
Code: 400
Content example
Unknown username#
Condition: User with this username does not exist
Code: 404
Content example
Rate limit exceeded#
Condition: After 12 tries the rate limit will be exceeded.
Code: 400
Content example
After exceeding the rate limit there has to be requested a new code via this request.
No password reset requested for this user#
Condition: There was not requested a password reset for this account
Code: 400
Content example