summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
Diffstat (limited to 'apps')
-rw-r--r--apps/twofactor_backupcodes/appinfo/routes.php5
-rw-r--r--apps/twofactor_backupcodes/lib/Controller/SettingsController.php9
2 files changed, 0 insertions, 14 deletions
diff --git a/apps/twofactor_backupcodes/appinfo/routes.php b/apps/twofactor_backupcodes/appinfo/routes.php
index 0119bfd0b08..62972c6f0a6 100644
--- a/apps/twofactor_backupcodes/appinfo/routes.php
+++ b/apps/twofactor_backupcodes/appinfo/routes.php
@@ -23,11 +23,6 @@
return [
'routes' => [
[
- 'name' => 'settings#state',
- 'url' => '/settings/state',
- 'verb' => 'GET'
- ],
- [
'name' => 'settings#createCodes',
'url' => '/settings/create',
'verb' => 'POST'
diff --git a/apps/twofactor_backupcodes/lib/Controller/SettingsController.php b/apps/twofactor_backupcodes/lib/Controller/SettingsController.php
index 9b0b0fc57ba..d8d85a3bd5d 100644
--- a/apps/twofactor_backupcodes/lib/Controller/SettingsController.php
+++ b/apps/twofactor_backupcodes/lib/Controller/SettingsController.php
@@ -50,15 +50,6 @@ class SettingsController extends Controller {
/**
* @NoAdminRequired
- * @return JSONResponse
- */
- public function state() {
- $user = $this->userSession->getUser();
- return $this->storage->getBackupCodesState($user);
- }
-
- /**
- * @NoAdminRequired
* @PasswordConfirmationRequired
*
* @return JSONResponse