Browse Source
Remove unused backupscode function
We use the initial state API so no need for this anymore.
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
pull/17116/head
Roeland Jago Douma
7 years ago
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with
0 additions and
14 deletions
-
apps/twofactor_backupcodes/appinfo/routes.php
-
apps/twofactor_backupcodes/lib/Controller/SettingsController.php
|
|
|
@ -22,11 +22,6 @@ |
|
|
|
// @codeCoverageIgnoreStart
|
|
|
|
return [ |
|
|
|
'routes' => [ |
|
|
|
[ |
|
|
|
'name' => 'settings#state', |
|
|
|
'url' => '/settings/state', |
|
|
|
'verb' => 'GET' |
|
|
|
], |
|
|
|
[ |
|
|
|
'name' => 'settings#createCodes', |
|
|
|
'url' => '/settings/create', |
|
|
|
|
|
|
|
@ -48,15 +48,6 @@ class SettingsController extends Controller { |
|
|
|
$this->storage = $storage; |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @NoAdminRequired |
|
|
|
* @return JSONResponse |
|
|
|
*/ |
|
|
|
public function state() { |
|
|
|
$user = $this->userSession->getUser(); |
|
|
|
return $this->storage->getBackupCodesState($user); |
|
|
|
} |
|
|
|
|
|
|
|
/** |
|
|
|
* @NoAdminRequired |
|
|
|
* @PasswordConfirmationRequired |
|
|
|
|