You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Current change password endpoint: POST /account/pw/change
Current reset password endpoint: POST /account/pw/reset
Since we have already a endpoint to create and delete accounts:
POST /account
DELETE /account
We should use the following endpoint to change password:
PUT /account
{
"username": "[email protected]",
"old_password": "pass123",
"new_password": "pass456",
"email": "[email protected]"
}
For the future, if we want endpoints to change other fields like email, or even username, we can use:
PUT /account?change=:field
And the field to be changed passed in the change parameter.
And the following to reset password:
PUT /account?reset=true
{
"username": "[email protected]"
}
The text was updated successfully, but these errors were encountered:
Current change password endpoint: POST /account/pw/change
Current reset password endpoint: POST /account/pw/reset
Since we have already a endpoint to create and delete accounts:
POST /account
DELETE /account
We should use the following endpoint to change password:
PUT /account
{
"username": "[email protected]",
"old_password": "pass123",
"new_password": "pass456",
"email": "[email protected]"
}
For the future, if we want endpoints to change other fields like email, or even username, we can use:
PUT /account?change=:field
And the field to be changed passed in the change parameter.
And the following to reset password:
PUT /account?reset=true
{
"username": "[email protected]"
}
The text was updated successfully, but these errors were encountered: