diff options
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/AuthSettingsController.php | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/settings/Controller/AuthSettingsController.php b/settings/Controller/AuthSettingsController.php index 71bd3bf53d8..0afc37e7cc3 100644 --- a/settings/Controller/AuthSettingsController.php +++ b/settings/Controller/AuthSettingsController.php @@ -95,39 +95,6 @@ class AuthSettingsController extends Controller { /** * @NoAdminRequired * @NoSubadminRequired - * - * @return JSONResponse|array - */ - public function index() { - $tokens = $this->tokenProvider->getTokenByUser($this->uid); - - try { - $sessionId = $this->session->getId(); - } catch (SessionNotAvailableException $ex) { - return $this->getServiceNotAvailableResponse(); - } - try { - $sessionToken = $this->tokenProvider->getToken($sessionId); - } catch (InvalidTokenException $ex) { - return $this->getServiceNotAvailableResponse(); - } - - return array_map(function (IToken $token) use ($sessionToken) { - $data = $token->jsonSerialize(); - $data['canDelete'] = true; - $data['canRename'] = $token instanceof INamedToken; - if ($sessionToken->getId() === $token->getId()) { - $data['canDelete'] = false; - $data['canRename'] = false; - $data['current'] = true; - } - return $data; - }, $tokens); - } - - /** - * @NoAdminRequired - * @NoSubadminRequired * @PasswordConfirmationRequired * * @param string $name |