Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/nextcloud/server.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-08 15:03:22 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2018-10-10 15:34:52 +0300
commit67c3730fbb8e12c6adda0af37d5a7ac8960415dc (patch)
tree4625e834d8812cff6c7f4a4bdae16ea9f8cda564 /settings/routes.php
parent1dbd7172c31b2d611e49c7c8a60a05da134a4733 (diff)
Add admin interface to enforce 2FA
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'settings/routes.php')
-rw-r--r--settings/routes.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/routes.php b/settings/routes.php
index bd6713a7c16..bfb31b8d382 100644
--- a/settings/routes.php
+++ b/settings/routes.php
@@ -80,7 +80,9 @@ $application->registerRoutes($this, [
['name' => 'AdminSettings#index', 'url' => '/settings/admin/{section}', 'verb' => 'GET', 'defaults' => ['section' => 'server']],
['name' => 'AdminSettings#form', 'url' => '/settings/admin/{section}', 'verb' => 'GET'],
['name' => 'ChangePassword#changePersonalPassword', 'url' => '/settings/personal/changepassword', 'verb' => 'POST'],
- ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST']
+ ['name' => 'ChangePassword#changeUserPassword', 'url' => '/settings/users/changepassword', 'verb' => 'POST'],
+ ['name' => 'TwoFactorSettings#index', 'url' => '/settings/api/admin/twofactorauth', 'verb' => 'GET'],
+ ['name' => 'TwoFactorSettings#update', 'url' => '/settings/api/admin/twofactorauth', 'verb' => 'PUT'],
]
]);