diff options
author | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-03-14 17:12:01 +0300 |
---|---|---|
committer | Christoph Wurst <christoph@winzerhof-wurst.at> | 2017-04-10 09:14:52 +0300 |
commit | 16f760d49ea6b9f37aaeaacaf3f29fe56159831b (patch) | |
tree | 1869383b6b12a07575ce72e92459296f0dd4d21c /appinfo | |
parent | 1d7d5f07871f764ff4cfb25ae66c247f9841a06e (diff) |
Add possibility to add multiple U2F devices
Users should be able to add as many devices as they like, hence
the interface should allow to list added devices and have a button
to add new ones. To identify devices later, users can give names
to devices.
Signed-off-by: Christoph Wurst <christoph@winzerhof-wurst.at>
Diffstat (limited to 'appinfo')
-rw-r--r-- | appinfo/database.xml | 7 | ||||
-rw-r--r-- | appinfo/routes.php | 10 |
2 files changed, 11 insertions, 6 deletions
diff --git a/appinfo/database.xml b/appinfo/database.xml index 629524b..04ee794 100644 --- a/appinfo/database.xml +++ b/appinfo/database.xml @@ -46,10 +46,15 @@ <notnull>true</notnull> <length>4</length> </field> + <field> + <name>name</name> + <type>text</type> + <notnull>false</notnull> + <length>255</length> + </field> <index> <name>u2f_registrations_user_id</name> - <unique>true</unique> <field> <name>user_id</name> <sorting>ascending</sorting> diff --git a/appinfo/routes.php b/appinfo/routes.php index 5783439..f02b923 100644 --- a/appinfo/routes.php +++ b/appinfo/routes.php @@ -26,11 +26,6 @@ return [ 'verb' => 'GET' ], [ - 'name' => 'settings#disable', - 'url' => '/settings/disable', - 'verb' => 'POST' - ], - [ 'name' => 'settings#startRegister', 'url' => '/settings/startregister', 'verb' => 'POST' @@ -40,5 +35,10 @@ return [ 'url' => '/settings/finishregister', 'verb' => 'POST' ], + [ + 'name' => 'settings#remove', + 'url' => '/settings/remove', + 'verb' => 'POST' + ], ] ]; |