Allow 2FA to be setup on first login
Once 2FA is enforced for a user and they have no 2FA setup yet this will now prompt them with a setup screen. Given that providers are enabled that allow setup then. Signed-off-by:Roeland Jago Douma <roeland@famdouma.nl> Signed-off-by:
Christoph Wurst <christoph@winzerhof-wurst.at>
Showing
- core/Controller/TwoFactorChallengeController.php 67 additions, 0 deletionscore/Controller/TwoFactorChallengeController.php
- core/Middleware/TwoFactorMiddleware.php 7 additions, 1 deletioncore/Middleware/TwoFactorMiddleware.php
- core/routes.php 3 additions, 0 deletionscore/routes.php
- core/templates/twofactorselectchallenge.php 13 additions, 2 deletionscore/templates/twofactorselectchallenge.php
- core/templates/twofactorsetupchallenge.php 16 additions, 0 deletionscore/templates/twofactorsetupchallenge.php
- core/templates/twofactorsetupselection.php 58 additions, 0 deletionscore/templates/twofactorsetupselection.php
- lib/composer/composer/autoload_classmap.php 3 additions, 0 deletionslib/composer/composer/autoload_classmap.php
- lib/composer/composer/autoload_static.php 3 additions, 0 deletionslib/composer/composer/autoload_static.php
- lib/private/Authentication/Login/TwoFactorCommand.php 18 additions, 3 deletionslib/private/Authentication/Login/TwoFactorCommand.php
- lib/private/Authentication/TwoFactorAuth/Manager.php 14 additions, 0 deletionslib/private/Authentication/TwoFactorAuth/Manager.php
- lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php 34 additions, 0 deletions...ic/Authentication/TwoFactorAuth/ALoginSetupController.php
- lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php 43 additions, 0 deletions...blic/Authentication/TwoFactorAuth/IActivatableAtLogin.php
- lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php 41 additions, 0 deletions...blic/Authentication/TwoFactorAuth/ILoginSetupProvider.php
- tests/Core/Controller/TwoFactorChallengeControllerTest.php 124 additions, 3 deletionstests/Core/Controller/TwoFactorChallengeControllerTest.php
- tests/Core/Middleware/TwoFactorMiddlewareTest.php 34 additions, 0 deletionstests/Core/Middleware/TwoFactorMiddlewareTest.php
- tests/lib/Authentication/Login/TwoFactorCommandTest.php 180 additions, 0 deletionstests/lib/Authentication/Login/TwoFactorCommandTest.php
- tests/lib/Authentication/TwoFactorAuth/ManagerTest.php 19 additions, 0 deletionstests/lib/Authentication/TwoFactorAuth/ManagerTest.php
Loading
Please register or sign in to comment