...
Base URL: /passwordReset/initstatus
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
String | Yes | The email of the user we want to check,. | |
token | String | Yes | The token generated in the previous step. Only tokens generated by the 'initiate password/pin' operation are allowed by this operation. |
...
Current Implementation
This operation checks whether a particular user has a pending 'password/pin reset' modified the pin and/or password of a user.
This is a POST operation.
This operation performs the following actions:
- Check if an entry in PasswordResetRequest table exists for a provided email and tokenModifies pin and/or password of a user.
- Remove the entry of PasswordResetRequest table associated to this operation.
The output of this operation is:
- A 'success' status of 'false' and a corresponding 'failMessage' if:if:
- There is not entry for the provided token in PasswordResetRequest.
- If the provided email and token don't match the existing PasswordResetRequest entry.
- There is some internal error in the operation.
- A 'success' status of 'true' if the operation was successfully completed in addition to the following information:pending: boolean value specifying whether a pending operation exits or not.
After this operation is successfully completed, the corresponding PasswordResetRequest entry is eliminated from the database.
Parameters
Base URL: /passwordReset/init
Parameters:confirm
Parameters:
Name | Type | Mandatory | Description |
---|---|---|---|
String | Yes | The email of the user we want to modify. | |
token | String | Yes | The password reset token associated with the provided email. |
password | String | No, unless pin is not provided | The new password we want to assign to the user. If this parameter is not provided, the original password of the user is not modified. |
pin | String | No, unless password is not provided | The new pin we want to assign to the user. If this parameter is not provided, the original pin of the user is not modified. |
API Sample
Code Block | ||||||
---|---|---|---|---|---|---|
| ||||||
{
"statusFact":{
"success":true
}
}
|