Method SetPasswordHash
SetPasswordHash(String, String, String)
Set password for own user. Password requirements has to be tested on client!
Declaration
void SetPasswordHash(string connectionId, string oldPasswordHashed, string newPasswordHashed)
Parameters
Type | Name | Description |
---|---|---|
System.String | connectionId | The connection id to identify your connection. See also ConnectionId |
System.String | oldPasswordHashed | Old password (Base64 encoded SHA 512 Hash) |
System.String | newPasswordHashed | Password to set (Base64 encoded SHA 512 Hash) |
Remarks
New password must fulfill system password requirements PasswordConfigurationContract
Examples
POST http://YourServerName/InfoShare/Json/Common/SetPasswordHash
Example for set password for own user.{
"connectionId": "2e926e26-4e7f-4bf5-be15-673af621819e",
"oldPasswordHashed": "testPassword",
"newPasswordHashed": "newTestPassword"
}
Response:
{ }
Exceptions
Type | Condition |
---|---|
ServiceException | The connection id {connectionId} isn't valid or has expired (10008) |
ServiceException | Password could not be set (10085) |
ServiceException | Verification code is needed: Verification code not yet verified (10152) |