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

Popular posts from this blog

Spring Boot + JPA + Hibernate: Unable to locate persister -

go - Golang: panic: runtime error: invalid memory address or nil pointer dereference using bufio.Scanner -

c - double free or corruption (fasttop) -