Raphaël Dubigny from Theodo.fr has recently written an article how to integrate two-factor authentication via SMS with scheb/two-factor-bundle and javihernandezgil/nexmo-bundle. Nice work!
I can highly recommend that article if you’re interested in how to integrate your own authentication methods.
Nice work with your Symfony Bundle, before using it I’m wondering if it’s possible for a user to specify his number after the form login ? Or the user will not be able to be logged in at all ?
Usually two-factor authentication isn’t enabled by default. You have to enable it in your user profile, which is where you define the mobile number. Then, on the next login, the two-factor mechanism will be triggered.