One time password

This public forum is for user-to-user discussions of PHPMaker. Note that this is not support forum.
Post Reply
andyrav
User
Posts: 641

One time password

Post 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


arbei
User
Posts: 9384

Post 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()
}

Post Reply