The pxSendOTP activity generates a one-time password (a fixed-length, eight-digit number), sends it to pyEmailSettings.pyEmailAccount, and 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:
- By calling an activity — Choose this method to use a one-time password in an application that is running on Pega Platform version 7.3 or later. For instructions, see Generating a one-time password by calling an activity.
- By using APIs — Choose 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. For instructions, see Generating a one-time password by calling an API.