This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
%%[ | |
ELSEIF RequestParameter("submittedOTP") == true THEN | |
SET @OTP = RequestParameter('OTP') | |
SET @email = RequestParameter("email") | |
/* check OTP against the DE */ | |
set @rows = LookupOrderedRows("OTP", 1, "SentDate desc", "EmailAddress", @email) | |
if @rowCount > 0 then | |
set @row = row(@rows, 1) | |
set @deOTP = field(@row,"OTP") | |
endif | |
if @otp == @deOTP then | |
]%% | |
OTP verified | |
%%[ else ]%% | |
OTP not vverified | |
%%[ endif ]%% |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment