Method SetPassword
SetPassword(String, String, String)
Set password for own user
Declaration
void SetPassword(string connectionId, string oldPassword, string newPassword)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | oldPassword | Old password |
System.String | newPassword | Password to set |
Remarks
New password must fulfill system password requirements
Examples
POST http://YourServerName/InfoShare/Json/Common/SetPassword
Example for set password for own user.{
"connectionId": "b6742bb8-ef97-44ae-819b-a2fa2200908a",
"oldPasswordHashed": "pluT19VcOQcugdnfROjVD3FyIhJNIXyWvRneRa2coRXurMFB41H7pllWpUSOnqDrrZMSPChajsMUUqmcsD5tNw==",
"newPasswordHashed": "/p9lYxRyTZqKx4Xk2gDOeRaEjUBqHbTNNoFh0XUdL48uw616KSA5vm5SSypfOhXdrV3aci1Zyt14je4ndwmx9A=="
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Password could not be set (10085) |
ServiceException | Password not long enough (10081) |
ServiceException | Password must contain a character (10082) |
ServiceException | Password must contain a digit (10086) |
ServiceException | Password must contain a special character (10083) |
ServiceException | Password must contain a upper and a lower case character (10084) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |