The pxSendOTP activity generates a one-time password (a fixed-length, eight-digit number), sends it to the user and then stores it in memory until it expires. It returns a Reference ID value that identifies a specific one-time password during later verification of a user entry by the pxVerifyOTP activity. 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:
- Generating a one-time password by calling an activity
You can generate a one-time password by calling an activity. Use this method to use a one-time password in an application that is running on Pega Platform version 7.3 or later.
- Generating a one-time password by calling an API
You can generate a one-time password by calling an API. Use this method to use a one-time password from an external system or if your application is running on a Pega Platform version earlier than 7.3.