]> source.dussan.org Git - nextcloud-server.git/commit
Allow 2FA to be setup on first login 15304/head
authorRoeland Jago Douma <roeland@famdouma.nl>
Fri, 5 Apr 2019 16:21:08 +0000 (18:21 +0200)
committerRoeland Jago Douma <roeland@famdouma.nl>
Fri, 17 May 2019 08:11:53 +0000 (10:11 +0200)
commit579162d7b94465d5041a7bf1229f68e6d92d7b58
treebf9e43faac91fec050ef5c7971c66be07a7b7ad8
parente625164e85b3ab4be3a51b86f909564430cb388b
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>
17 files changed:
core/Controller/TwoFactorChallengeController.php
core/Middleware/TwoFactorMiddleware.php
core/routes.php
core/templates/twofactorselectchallenge.php
core/templates/twofactorsetupchallenge.php [new file with mode: 0644]
core/templates/twofactorsetupselection.php [new file with mode: 0644]
lib/composer/composer/autoload_classmap.php
lib/composer/composer/autoload_static.php
lib/private/Authentication/Login/TwoFactorCommand.php
lib/private/Authentication/TwoFactorAuth/Manager.php
lib/public/Authentication/TwoFactorAuth/ALoginSetupController.php [new file with mode: 0644]
lib/public/Authentication/TwoFactorAuth/IActivatableAtLogin.php [new file with mode: 0644]
lib/public/Authentication/TwoFactorAuth/ILoginSetupProvider.php [new file with mode: 0644]
tests/Core/Controller/TwoFactorChallengeControllerTest.php
tests/Core/Middleware/TwoFactorMiddlewareTest.php
tests/lib/Authentication/Login/TwoFactorCommandTest.php
tests/lib/Authentication/TwoFactorAuth/ManagerTest.php