4

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 2

3

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:

http://www.christianscheb.de/archives/14

Sign up to request clarification or add additional context in comments.

1 Comment

Looks like the link posted is not working, archive.org to the rescue: web.archive.org/web/20160608090517/http://www.christianscheb.de/…
1

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

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.