I need create login form to enter site. But not simple (username and password). First step - user enter phone, i`m need check phone number from database, if user with entered phone number exists - generate random code and send to phne. Two step - check this code and if success - authenticate user in site. Standart symfony2 functionality does not allow this. Help me pleace with this issue)
2 Answers
Here there is a blog post, what was listed on symfony's website, containing also a two factory authentication, back engineered from this sonata and google bundle:
1 Comment
Eman
Looks like the link posted is not working, archive.org to the rescue: web.archive.org/web/20160608090517/http://www.christianscheb.de/…
You could use the google_authenticator, which provides excacly this two step authentication mechanism. It's contained by the Sonata UserBundle: Authenticator article in Sonata UserBundle documentation
And here is a nice blog post about it: Google Authenticator Blog Post