summaryrefslogtreecommitdiffstats
path: root/core
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-05-02 19:58:19 +0200
committerThomas Müller <thomas.mueller@tmit.eu>2016-05-11 13:36:46 +0200
commitf0f8bdd495ff958ce536e577e42586090b6bcd8f (patch)
treec13077c866c0561cf158b5de913c1975721172cd /core
parentdff108e97bea1d1b6e6a639fabd64d400acd4347 (diff)
downloadnextcloud-server-f0f8bdd495ff958ce536e577e42586090b6bcd8f.tar.gz
nextcloud-server-f0f8bdd495ff958ce536e577e42586090b6bcd8f.zip
PHPDoc and other minor fixes
Diffstat (limited to 'core')
-rw-r--r--core/Controller/TokenController.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/core/Controller/TokenController.php b/core/Controller/TokenController.php
index db48ea27b99..6f98face144 100644
--- a/core/Controller/TokenController.php
+++ b/core/Controller/TokenController.php
@@ -65,15 +65,17 @@ class TokenController extends Controller {
*
* @param string $user
* @param string $password
+ * @param string $name the name of the client
+ * @return Response
*/
public function generateToken($user, $password, $name = 'unknown client') {
if (is_null($user) || is_null($password)) {
- $response = new Response([]);
+ $response = new Response();
$response->setStatus(Http::STATUS_UNPROCESSABLE_ENTITY);
return $response;
}
if ($this->userManager->checkPassword($user, $password) === false) {
- $response = new Response([]);
+ $response = new Response();
$response->setStatus(Http::STATUS_UNAUTHORIZED);
return $response;
}