Creating SMS OTP Using Shield |
Hi,
I'm trying to build a function to send SMS for two-factor authentication (2FA) instead of using email for 2FA. However, I got stuck trying to override the existing authentication handler function, which creates a 6-digit code and sends it to the user's email address. I want to create a new function to replace that. I'm using CI4 + Shield
i create a random 5 numbers , which i leverage to show images for captcha like this:
Code: public function login() i then check to see if what was show to prospective admin logging in like this: Code: public function credentials() not exactly what you want but maybe give you an approach based on producing a number then checking |
Welcome Guest, Not a member yet? Register Sign In |