diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-08 15:03:22 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2018-10-10 15:34:52 +0300 |
commit | 67c3730fbb8e12c6adda0af37d5a7ac8960415dc (patch) | |
tree | 4625e834d8812cff6c7f4a4bdae16ea9f8cda564 /settings/routes.php | |
parent | 1dbd7172c31b2d611e49c7c8a60a05da134a4733 (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.php | 4 |
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'], ] ]); |