Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Base URL: /passwordReset/initstatus
Parameters:

NameTypeMandatoryDescription
emailStringYesThe email of the user we want to check,.
tokenStringYesThe 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:

  1. Check if an entry in PasswordResetRequest table exists for a provided email and tokenModifies pin and/or password of a user.
  2. Remove the entry of PasswordResetRequest table associated to this operation.

The output of this operation is:

  1. A 'success' status of 'false' and a corresponding 'failMessage' if:if:
    1. There is not entry for the provided token in PasswordResetRequest.
    2. If the provided email and token don't match the existing PasswordResetRequest entry.
    3. There is some internal error in the operation.
  2. 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:

NameTypeMandatoryDescription
emailStringYesThe email of the user we want to modify.
tokenStringYesThe password reset token associated with the provided email.
passwordStringNo, unless pin is not providedThe new password we want to assign to the user. If this parameter is not provided, the original password of the user is not modified.
pinStringNo, unless password is not providedThe 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

http://192.168.1.126:8080/PresentationServices/passwordReset/confirm?email=e@e.com&token=573e3b16-8acb-462a-8713-3aa63fda7395&password=newPass&pin=newPin

 

Code Block
languagejs
titleResult
collapsetrue
{
"statusFact":{
"success":true
}
}