POST api/password/ValidatePasswordRules
Validates a password with the password rules
Request Information
URI Parameters
None.
Body Parameters
The validate password request
ValidatePasswordRequestName | Description | Type | Additional information |
---|---|---|---|
UserId |
The user Id |
integer |
None. |
PasswordValidationUserType |
The user type Id |
PasswordValidationUserType |
None. |
Password |
The password to validate |
string |
None. |
ConfirmPassword |
The confirmed password |
string |
None. |
Request Formats
application/json, text/json
Sample:
{ "userId": 1, "passwordValidationUserType": 0, "password": "sample string 2", "confirmPassword": "sample string 3" }
application/xml, text/xml
Sample:
<ValidatePasswordRequest xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/TS.DR.Resources"> <ConfirmPassword>sample string 3</ConfirmPassword> <Password>sample string 2</Password> <PasswordValidationUserType>Client</PasswordValidationUserType> <UserId>1</UserId> </ValidatePasswordRequest>
application/x-www-form-urlencoded
Sample:
Sample not available.
Response Information
Resource Description
Returns the result of the reset operation.
ChangePasswordResultName | Description | Type | Additional information |
---|---|---|---|
Result |
A code identifying the result of the password change request |
ChangePasswordResultCode |
None. |
PasswordRuleValidationResults |
The list of rule violations |
Collection of PasswordRuleValidationResult |
None. |
LogMessage |
An UNLOCALIZED error message. Use for logging, but not from the UI. |
string |
None. |
Response Formats
application/json, text/json
Sample:
Sample not available.