Not logged in : Login |
This method allows to change the password on a user account. Since passwords are transmitted in plain text it is recommended to use an encrypted connection.
old_password
The old password in plain text. The old password can be omitted if the pwd is changed for the first time. Alternatively old_password can be set to the pin as generated by user.password.recover.email().
new_password
The new password in plain text.
An error code stating the success of the command execution as detailed in ODS Error Result Codes. On error the HTTP status code will be set to 403 or 400, depending on the type of error.
Example:
$ curl -i "http://www.iodbc.org/ods/api/user.password.change?user_name=test123&password_hash=4674a4b44e89011cfa581ff90967ebc52fd1080d&old_password=1&new_password=2"
HTTP/1.1 200 OK
Server: Virtuoso/05.12.3041 (Solaris) x86_64-sun-solaris2.10-64 VDB
Connection: Keep-Alive
Date: Mon, 28 Dec 2009 22:46:56 GMT
Accept-Ranges: bytes
Content-Type: text/xml; charset="ISO-8859-1"
Content-Length: 57
1
Attributes | Values |
---|---|
rdf:type | |
schema:httpMethod |
|
schema:contentType |
|
http://www.openlin...es#isWebServiceOf | |
http://www.openlin...vices#endPointURL | |
schema:shortDescription |
|
http://www.openlin...ices#hasParameter | |
schema:name |
|
schema:description |
An error code stating the success of the command execution as detailed in ODS Error Result Codes. On error the HTTP status code will be set to $ curl -i "http://www.iodbc.org/ods/api/user.password.change?user_name=test123&password_hash=4674a4b44e89011cfa581ff90967ebc52fd1080d&old_password=1&new_password=2" HTTP/1.1 200 OK Server: Virtuoso/05.12.3041 (Solaris) x86_64-sun-solaris2.10-64 VDB Connection: Keep-Alive Date: Mon, 28 Dec 2009 22:46:56 GMT Accept-Ranges: bytes Content-Type: text/xml; charset="ISO-8859-1" Content-Length: 57 <result> <code>1</code> <message>Success</message> </result> This function requries authentication via one of the supported authentication methods as described in ODS Authentication. |
schema:url | |
is schema:target of |