How to create an account and configure TOTP¶
Create an encryption key¶
Copy the encryption key and paste to
But we recommend that you keep this value in
parameters.yml.dist and add reference to variable in
Create an account¶
Choose one of the above options and provide your data:
Add account in your mobile app¶
- Log in to your website and go to "/2fas/index".
This is a simple dashboard to show and manage your settings:
This dashboard comes from our demo application and has included our css styles. After installing this bundle by default you haven't any styles so you get a white, plain html page. But if you want, you can include it.
Click on the "Configure" under the TOTP channel.
You will see the configuration page:
- Open your mobile app:
- Scan QR code:
- Your mobile app will generate a code:
Type this code in form and click Submit
Configuration is complete but the second factor is still disabled:
- Go to console and enable the second factor:
- Now you will be protected by 2FAS, next time you login, after your login form you will see the second factor form: