Verifying a one-time password
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 generate a one-time password in the following ways:
- By calling an activity — Choose this method to verify a one-time password in an application that is running on Pega Platform version 7.3 or later. For instructions, see Verifying a one-time password by calling an activity.
- By using APIs — Choose 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. For instructions, see Verifying a one-time password by calling an API.