Ask AI
Skip to main content

Check OTP

Function: Check OTP

This action allows you to initiate the verification process for a One-Time Password (OTP). It takes a numerical OTP as input and sends it to the system for validation, typically used for secure login, transaction confirmation, or other sensitive operations.

Input

  • One time password: The unique numerical code that needs to be verified. This is a required input.
    • Type: Number

Output

This action triggers a front-end process to verify the provided OTP. It does not directly return a value or status that can be used in subsequent steps within your application logic. The outcome of the OTP verification (e.g., success or failure) is typically handled by the user interface or another part of your application.

Execution Flow

Real-Life Examples

Here are some examples of how you might use the "Check OTP" action in your application:

Example 1: Verifying a User Login

A user attempts to log in, and after entering their username and password, they receive an OTP on their registered mobile number.

  • Inputs:
    • One time password: 123456
  • Result: The system initiates the verification of 123456. If valid, the user proceeds to their account dashboard.

Example 2: Confirming a Financial Transaction

A user is making an online payment and needs to confirm the transaction with an OTP sent to their email.

  • Inputs:
    • One time password: 987654
  • Result: The system initiates the verification of 987654. If valid, the payment is processed and confirmed.

Example 3: Resetting a Password

A user requests a password reset, and an OTP is sent to their recovery email. They enter the OTP to proceed with setting a new password.

  • Inputs:
    • One time password: 456789
  • Result: The system initiates the verification of 456789. If valid, the user is allowed to create a new password.

Example 4: Attempting to Check OTP Without Providing One

A user is prompted to enter an OTP but clicks "Submit" without typing anything.

  • Inputs:
    • One time password: (empty)
  • Result: The system displays an error message indicating that the "One time password" is required and cannot be empty.