Appearance
OTP - Verify email ​
Use this action to confirm ownership of an email address. It validates the OTP (one‑time passcode) and marks the email as verified.
FIRST REQUEST A CODE
Before you can use this action, you must first use the Request code action to generate a code.
Configuration ​
| Display Key | Example Input | Description |
|---|---|---|
| "user@example.com" | Email to verify (must match the target of the requested code). | |
| OTP Code | "362941" | The code the user received and entered. |
Example flow ​
1
Run the
OTP – Request code action to generate a code, and set OTP Type: email-verification2
In the
On OTP requested Event Trigger, use the backend Send Email action to send the verification code3
After sending the code, allow the user to enter the code and run the
OTP – Verify email actionOTP INPUT ELEMENT
If you do not wish to create your own element to allow the user to input the code, WeWeb has its own native element.
Example output ​
json
{ "verified": true }
