diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-05-06 16:31:40 +0200 |
---|---|---|
committer | Thomas Müller <thomas.mueller@tmit.eu> | 2016-05-11 13:36:46 +0200 |
commit | 46bdf6ea2b1e10c2f4d2fae214ecc81b188fa981 (patch) | |
tree | 56c5fb779556bea6489463a315affa6726d81655 /core/Controller/TokenController.php | |
parent | 3ffa7d986a3bb2a67ae37e017f3e34097774cbf2 (diff) | |
download | nextcloud-server-46bdf6ea2b1e10c2f4d2fae214ecc81b188fa981.tar.gz nextcloud-server-46bdf6ea2b1e10c2f4d2fae214ecc81b188fa981.zip |
fix PHPDoc and other minor issues
Diffstat (limited to 'core/Controller/TokenController.php')
-rw-r--r-- | core/Controller/TokenController.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/core/Controller/TokenController.php b/core/Controller/TokenController.php index 6f98face144..6606a3c8345 100644 --- a/core/Controller/TokenController.php +++ b/core/Controller/TokenController.php @@ -27,6 +27,7 @@ use OC\Authentication\Token\DefaultTokenProvider; use OC\Authentication\Token\IToken; use OC\User\Manager; use OCP\AppFramework\Controller; +use OCP\AppFramework\Http\JSONResponse; use OCP\AppFramework\Http\Response; use OCP\IRequest; use OCP\Security\ISecureRandom; @@ -66,7 +67,7 @@ class TokenController extends Controller { * @param string $user * @param string $password * @param string $name the name of the client - * @return Response + * @return JSONResponse */ public function generateToken($user, $password, $name = 'unknown client') { if (is_null($user) || is_null($password)) { |