php - How to authenticate login with OTP -
is there way authenticate login in php using 1 time password should in digits , login.php asks on submission of form. once user input login information , submit form. system send otp user email , asks input otp access member area.
i have google out ways sms based costs lot. need email based login code authenticate login , secure member area unwanted login attempts.
if has php coding please share me.
the question is, if want rely on email. worse sms. , if want implement on own.
you may want take @ privacyidea (disclaimer: project), can manage kinds of tokens users. sms, email hardware tokens yubikey , smartphone apps google authenticator.
there several php examples, since calling rest api: https://github.com/privacyidea/simplesamlphp-module-privacyidea/blob/master/lib/auth/source/privacyidea.php https://github.com/cornelinux/wordpress-strong-authentication/blob/master/strong-authentication.php
Comments
Post a Comment