Verifying a one-time password
You can verify a one-time password by calling an activity or an API.
The pxVerifyOTP activity takes as inputs a reference to a previously generated one-time password and a user entry, and verifies that the previously generated one-time password has not expired and matches the user entry.
Input parameters for this activity must be supplied in an instance of the Embed-OTPInputs class, which is supplied as the OTPInputs parameter in the activity.
You can verify a one-time password in the following ways:
- Verifying a one-time password by calling an activity
You can verify a one-time password by calling an activity. Use this method to verify a one-time password in an application that is running on Pega Platform version 7.3 or later.
- Verifying a one-time password by calling an API
You can verify a one-time password by calling an API. Use this method to verify a one-time password from an external system or if your application is running on a Pega Platform version earlier than 7.3.
Previous topic Generating a one-time password by calling an API Next topic Verifying a one-time password by calling an activity