diff options
author | root <roger.szabo@web.de> | 2016-07-25 16:56:14 +0800 |
---|---|---|
committer | root <roger.szabo@web.de> | 2016-07-25 16:56:14 +0800 |
commit | 1fb080df2bd105ece36f32dba41f401167637a8b (patch) | |
tree | 0350893b3ed6eae4e98852495064d367dbcbf0a1 /ocs | |
parent | c1b37e4ccbc8b0f6fb195952b4b8cefe9c89ab08 (diff) | |
parent | de4236bc4ae1a02141e1bf6d9ab60a9836cd965a (diff) | |
download | nextcloud-server-1fb080df2bd105ece36f32dba41f401167637a8b.tar.gz nextcloud-server-1fb080df2bd105ece36f32dba41f401167637a8b.zip |
Merge branch 'master' of https://github.com/nextcloud/server
Diffstat (limited to 'ocs')
-rw-r--r-- | ocs/v1.php | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/ocs/v1.php b/ocs/v1.php index 0ea3ac4c766..575b509b012 100644 --- a/ocs/v1.php +++ b/ocs/v1.php @@ -85,6 +85,8 @@ try { OC_Response::setStatus(405); } catch (\OC\OCS\Exception $ex) { OC_API::respond($ex->getResult(), OC_API::requestedFormat()); +} catch (\OC\User\LoginException $e) { + OC_API::respond(new OC_OCS_Result(null, \OCP\API::RESPOND_UNAUTHORISED, 'Unauthorised')); } catch (\Exception $e) { OC_API::setContentType(); OC_OCS::notFound(); |