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 11:58:32 +0300
committerChristoph Wurst <christoph@winzerhof-wurst.at>2016-08-26 11:58:32 +0300
commitf0181c58684360dd09d5f5cb4898fac976eeb4ac (patch)
tree1af5995a6696f14889411217c4e5cd854c0e2050 /appinfo/routes.php
parent0ba2cbb6eb6f7701539a15a7e84f4189097f0c1c (diff)
quick and dirty U2F registration
Diffstat (limited to 'appinfo/routes.php')
-rw-r--r--appinfo/routes.php34
1 files changed, 34 insertions, 0 deletions
diff --git a/appinfo/routes.php b/appinfo/routes.php
new file mode 100644
index 0000000..df25953
--- /dev/null
+++ b/appinfo/routes.php
@@ -0,0 +1,34 @@
+<?php
+
+/**
+ * @author Christoph Wurst <christoph@winzerhof-wurst.at>
+ *
+ * Two-factor TOTP
+ *
+ * This code is free software: you can redistribute it and/or modify
+ * it under the terms of the GNU Affero General Public License, version 3,
+ * as published by the Free Software Foundation.
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+ * GNU Affero General Public License for more details.
+ *
+ * You should have received a copy of the GNU Affero General Public License, version 3,
+ * along with this program. If not, see <http://www.gnu.org/licenses/>
+ *
+ */
+return [
+ 'routes' => [
+ [
+ 'name' => 'settings#startRegister',
+ 'url' => '/settings/startregister',
+ 'verb' => 'POST'
+ ],
+ [
+ 'name' => 'settings#finishRegister',
+ 'url' => '/settings/finishregister',
+ 'verb' => 'POST'
+ ],
+ ]
+];