sandstorm / NeosTwoFactorAuthentication

Extend the Neos Backend Login with 2FA
MIT License
12 stars 8 forks source link

FEATURE: Warn of missing 2FA / Enforce setting up 2FA #5

Closed Sebobo closed 1 year ago

Sebobo commented 2 years ago

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 :)

Pingu501 commented 2 years 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?

Sebobo commented 2 years ago

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.

Benjamin-K commented 1 year ago

yeebase/Yeebase.TwoFactorAuthentication does this, too. But there it is much more complicated to configure IMO.

I would prefer this way: