Closed Sebobo closed 1 year ago
Sounds like a good idea! Think we can just block the authentication and show a create TOTP screen during login.
Not sure yet if this should be configured via UI (some sort of Settings screen) or via Settings.yaml
. What do you think?
As a setting is fine.
I did it via a Component/Middleware for my customer, which redirects to the setup page when a user is logged in but has no account.
yeebase/Yeebase.TwoFactorAuthentication does this, too. But there it is much more complicated to configure IMO.
I would prefer this way:
My customer asked whether it can be made possible to warn of a missing 2FA token when a user logs in. Or even force a redirect to setting it up as long as it hasn't been done yet.
The might be a customer budget for this, then I could provide a PR. If not I just leave it here as an idea :)