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:
parent
ac48a9ba61
commit
0eeec1caab
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue