From Bright Pattern Documentation
Jump to: navigation, search
Tracy (talk | contribs)
Created page with "<translate>= ChangePassword = This method performs a password change. ''ChangePassword'' does not log in the user, require a valid session, or create a new session. == Method..."
 
Updated via BpDeleteTranslateTags script
 
(One intermediate revision by one other user not shown)
Line 1: Line 1:
<translate>= ChangePassword =
= ChangePassword =
This method performs a password change. ''ChangePassword'' does not log in the user, require a valid session, or create a new session.
This method performs a password change. ''ChangePassword'' does not log in the user, require a valid session, or create a new session.


== Method ==
== HTTP Method ==
POST
POST


Line 40: Line 40:
  { “error”: “weak_password” }  - too simple or too recent
  { “error”: “weak_password” }  - too simple or too recent
|}
|}
</translate>

Latest revision as of 04:02, 29 May 2024

ChangePassword

This method performs a password change. ChangePassword does not log in the user, require a valid session, or create a new session.

HTTP Method

POST

Request

session_change_password(username, tenant, old password, new password)

Example

POST /session_change_password HTTP/1.1
{"domain":"example.com",
"username":"tony.cobb",
"password":"password",
"newpassword":"aaa"}

Responses

A success response includes the "200 OK".

An error response is returned with a 4xx HTTP response code and a JSON body containing detailed error information.

Code Description Example
200 OK
HTTP/1.1 200 OK
401 not authenticated
{ “error”: “authentication_failed” }  - invalid old password
403 access denied
{ “error”: “weak_password” }  - too simple or too recent
< Previous