Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Different Twig-Site for Backup-Codes #173

Closed
luggesexe opened this issue Feb 14, 2023 · 2 comments
Closed

Different Twig-Site for Backup-Codes #173

luggesexe opened this issue Feb 14, 2023 · 2 comments

Comments

@luggesexe
Copy link

Hello Scheb,
before starting, a thank you for this great library!

I implemented the authentication successfully and I could already implement a custom Twig-Site under TOTP/Template. We are using an input field, that only allows numbers and single fields. This works all great and has no issue.

As starting out with the Backup-Code-Package, I could see, that it uses the same form input as for the TOTP-Token. Is there any way to set up a different template to input the Backup-Code.

Such as under Backup-Codes/Template the same way it is used on TOTP? That way on the TOTP-Page a link could be referenced with "Use Backup-Codes instead" linking to a form with a text input needed for the BC.

Maybe I did oversee something. I am glad on any information.

@scheb
Copy link
Owner

scheb commented Feb 25, 2023

There is no extra form for the backup code. You enter the backup code instead of an actual authentication code into the same field.

If you want different UI for entering backup codes, I'd either recommend

  • either you make these adjustments via JS
  • or you reload the page with a query parameter added, to use it as the signal when to change rendering of the template

@scheb scheb added the Support label Feb 25, 2023
@stale
Copy link

stale bot commented Mar 18, 2023

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.

@stale stale bot added the Stale label Mar 18, 2023
@stale stale bot closed this as completed Mar 25, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants