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

github.com/nextcloud/twofactor_u2f.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@winzerhof-wurst.at>2016-08-26 16:26:23 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-08-26 16:26:23 +0300
commit022e8ea063f7bb98c920b74bf5f7933aa7584173 (patch)
treea0022a761e33058b366d890d8390d8ae0388c06e /appinfo/routes.php
parentb2ecea2c82e77be41f3c1b7c86677ab1370c096d (diff)
allow users to enable/disable U2F via their personal settings
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php34
1 files changed, 22 insertions, 12 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
index df25953..5783439 100644
--- a/appinfo/routes.php
+++ b/appinfo/routes.php
@@ -19,16 +19,26 @@
*
*/
return [
- 'routes' => [
- [
- 'name' => 'settings#startRegister',
- 'url' => '/settings/startregister',
- 'verb' => 'POST'
- ],
- [
- 'name' => 'settings#finishRegister',
- 'url' => '/settings/finishregister',
- 'verb' => 'POST'
- ],
- ]
+ 'routes' => [
+ [
+ 'name' => 'settings#state',
+ 'url' => '/settings/state',
+ 'verb' => 'GET'
+ ],
+ [
+ 'name' => 'settings#disable',
+ 'url' => '/settings/disable',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'settings#startRegister',
+ 'url' => '/settings/startregister',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'settings#finishRegister',
+ 'url' => '/settings/finishregister',
+ 'verb' => 'POST'
+ ],
+ ]
];