Password
Session cookie for authentication
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
CSRF token for state-changing requests
Set to 'XMLHttpRequest' for AJAX requests to receive JSON response
New password
Confirm new password (must match password1).
Validated against AUTH_PASSWORD_VALIDATORS setting.
Password set successfully (AJAX request). Returns location URL for redirect.
URL to redirect (typically same endpoint)
/users/password/set/Password set successfully (non-AJAX request), redirects to location
Validation errors (AJAX request):
- Password mismatch (password1 != password2)
- Weak password (fails AUTH_PASSWORD_VALIDATORS)
Session cookie for authentication
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
CSRF token for state-changing requests
New password
Confirm new password (must match password1)
Phone number for SMS verification
SMS verification code. Omit on first request to receive OTP.
Set to true to request a new verification code
falsePassword set successfully (Step 2 completed)
Success message
New password has been saved.SMS verification code sent (Step 1 or resend). Confirmation data stored in session.
Validation errors:
- Password mismatch (password1 != password2)
- Weak password (fails AUTH_PASSWORD_VALIDATORS)
- Phone already exists for another active user
- Phone format invalid
- Incorrect OTP code during verification
Authentication required (must be logged in)
Too many requests:
- Throttling limit exceeded (register scope)
- SMS resend interval not elapsed
Frontend identifier for multi-frontend setups.
Must be in VALID_FRONTEND_IDS setting (Dynamic Configuration).
Passed to email template context as frontend_id.
Email address for password reset link
Reset email sent if address exists. Response is identical for existing and non-existing emails to prevent enumeration.
Confirmation message
Too many reset requests
Phone number for password reset SMS
Success response (always returned regardless of phone existence). SMS is sent only if phone belongs to an active user.
Confirmation message (translated)
If the phone number you specified is registered, a password reset sms has been sent.Validation errors:
- Phone format is invalid
Throttling limit exceeded (password-reset scope)
Session cookie for authentication
Session cookie in format sessionid=<value>.
May use site-specific cookie name (e.g., osessionid).
CSRF token for state-changing requests
Current password
New password
Confirm new password (must match new_password1)
Password changed successfully
Success confirmation message (translated)
New password has been saved.Validation errors:
- Invalid old password ("Invalid password.")
- Password mismatch (new_password1 != new_password2)
- Weak password (fails AUTH_PASSWORD_VALIDATORS)
Authentication required
Last updated
Was this helpful?

