diff options
author | Robin Appelman <icewind@owncloud.com> | 2016-08-03 16:24:12 +0200 |
---|---|---|
committer | Robin Appelman <robin@icewind.nl> | 2016-11-16 15:24:28 +0100 |
commit | da63af8b021afb209308f16611508ea65399f738 (patch) | |
tree | 99e43932879ca86f66068ffda947d20d8dc16ac4 /settings/Controller | |
parent | 1afccde16a04f9a91f9c5c46090517a54670f34d (diff) | |
download | nextcloud-server-da63af8b021afb209308f16611508ea65399f738.tar.gz nextcloud-server-da63af8b021afb209308f16611508ea65399f738.zip |
enable deleting/configuring new tokens
Signed-off-by: Robin Appelman <icewind@owncloud.com>
Diffstat (limited to 'settings/Controller')
-rw-r--r-- | settings/Controller/AuthSettingsController.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/settings/Controller/AuthSettingsController.php b/settings/Controller/AuthSettingsController.php index f097abf910b..4e3d05a14e8 100644 --- a/settings/Controller/AuthSettingsController.php +++ b/settings/Controller/AuthSettingsController.php @@ -135,11 +135,13 @@ class AuthSettingsController extends Controller { $token = $this->generateRandomDeviceToken(); $deviceToken = $this->tokenProvider->generateToken($token, $this->uid, $loginName, $password, $name, IToken::PERMANENT_TOKEN); + $tokenData = $deviceToken->jsonSerialize(); + $tokenData['canDelete'] = true; return [ 'token' => $token, 'loginName' => $loginName, - 'deviceToken' => $deviceToken + 'deviceToken' => $tokenData ]; } |