Comments (2)
You can define a custom form render to completely customize the rendering of the form. An example for such a custom form renderer can be found here: https://symfony.com/bundles/SchebTwoFactorBundle/current/firewall_template.html (The presented use-case is a different one, but is shows how the technical implementation of a custom form renderer is done).
The bundle expects the value to be posted over in a single field, rather than 6 separate form fields. So your requirement of having 6 separate form fields will make things more complicated. The best way to do it is:
- Use JavaScript to combine the values from the 6 fields to a single value, before you send it over to the server.
- Skip the whole idea of having 6 separate form fields, use a single field. Use CSS to make it visually appear the way you want it.
from 2fa.
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
from 2fa.
Related Issues (20)
- scheb/2fa-google-authenticator: \OTPHP\TOTP::verify()'s $leeway argument is misused HOT 5
- Problem when switching to PROD HOT 3
- How to have Google authenticator required to be setup even after first login ? HOT 5
- 2fa_login and 2fa_login_check can't be replaced by our own route name HOT 2
- Custom prepare trigger to enable selection of 2FA method at login HOT 2
- Support Symfony 7 HOT 6
- Validate code before actual Google Authentication / Different BruteForce protection compared to documentation HOT 1
- Bundle version 7 todo list (Symfony 7 support) HOT 1
- symfony 5.4 firewall with custom_authenticator HOT 3
- Pass TwoFactorTokenInterface to PreferredProviderInterface HOT 1
- Infinite redirection loop problem HOT 2
- advice on taking this bundle to the next level HOT 3
- Unable to decode the secret. Is it correctly base32 encoded? HOT 1
- After login it is not redirecting me to the 2fa route HOT 2
- Reduce the secret length to 16 characters HOT 1
- 2FA not detected/working on my project HOT 8
- Increase performance by using CacheableVoterInterface HOT 2
- GitHub Sponsors (PayPal not possible) HOT 2
- Cache-control headers are set to private when using 2FA bundle HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from 2fa.