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>
This commit is contained in:
Roeland Jago Douma 2019-09-12 22:16:29 +02:00
parent ac48a9ba61
commit 0eeec1caab
No known key found for this signature in database
GPG Key ID: F941078878347C0C
2 changed files with 0 additions and 14 deletions

View File

@ -22,11 +22,6 @@
// @codeCoverageIgnoreStart
return [
'routes' => [
[
'name' => 'settings#state',
'url' => '/settings/state',
'verb' => 'GET'
],
[
'name' => 'settings#createCodes',
'url' => '/settings/create',

View File

@ -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