We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
I am using django-rest-auth
django-rest-auth
I am implementing password change.
I found this option: at https://django-rest-auth.readthedocs.io/en/latest/api_endpoints.html
https://django-rest-auth.readthedocs.io/en/latest/api_endpoints.html
LOGOUT_ON_PASSWORD_CHANGE = False to keep the user logged in after password change
LOGOUT_ON_PASSWORD_CHANGE = False
I wanted to understand the flow.
I sent my password details
old_password new_password1 new_password2
to the endpoint /rest-auth/password/change/ (POST)
/rest-auth/password/change/ (POST)
curl --location --request POST "http://127.0.0.1:8000/rest-auth/password/change/" \ --header "Authorization:Token a42fdd3938ad24d8abd064d3fedhsh599115e38b6a" \ --header 'Content-Type: application/json' \ --data-raw '{ "old_password": "oldP" "new_password1": "newP" "new_password2": "newP" }'
Now what happens to my token on LOGOUT_ON_PASSWORD_CHANGE = True
LOGOUT_ON_PASSWORD_CHANGE = True
The text was updated successfully, but these errors were encountered:
No branches or pull requests
I am using
django-rest-auth
I am implementing password change.
I found this option: at
https://django-rest-auth.readthedocs.io/en/latest/api_endpoints.html
I wanted to understand the flow.
I sent my password details
to the endpoint
/rest-auth/password/change/ (POST)
Now what happens to my token on
LOGOUT_ON_PASSWORD_CHANGE = True
The text was updated successfully, but these errors were encountered: