Page 1 of 1
One time password
Posted: Fri Mar 01, 2024 12:15 am
by andyrav
Hi
in 2024 the one time password is a bit unclear for users
what is the best way once they have entered there username and password and correct it pops up a message to ask them to check their email for the OTP?
thanks
Re: One time password
Posted: Fri Mar 01, 2024 9:41 am
by arbei
You may try the Page_Redirecting server event for the Login page, e.g.
if (str_starts_with($url, "login2fa")) { // If going to the 2FA page
$this->setMessage("Please check your email account for the OTP"); // You can also use setSuccessMessage() or setWarningMessage()
}