diff options
author | Joas Schilling <coding@schilljs.com> | 2017-02-10 10:05:24 +0100 |
---|---|---|
committer | Joas Schilling <coding@schilljs.com> | 2017-02-10 10:10:21 +0100 |
commit | 33fb86f68b827692f242107380e4cf3d42f90658 (patch) | |
tree | 5fa2bee19237cf832b2be8be2c7c3210192cf123 /apps/dav/lib/Connector | |
parent | 397feb9e8ddefcb04ac201bc64fa04ac9b41c7ca (diff) | |
download | nextcloud-server-33fb86f68b827692f242107380e4cf3d42f90658.tar.gz nextcloud-server-33fb86f68b827692f242107380e4cf3d42f90658.zip |
Fix detection of the new iOS app
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'apps/dav/lib/Connector')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Auth.php | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php index 95222dafec9..93d8b14d9c9 100644 --- a/apps/dav/lib/Connector/Sabre/Auth.php +++ b/apps/dav/lib/Connector/Sabre/Auth.php @@ -32,7 +32,6 @@ namespace OCA\DAV\Connector\Sabre; use Exception; -use OC\AppFramework\Http\Request; use OC\Authentication\Exceptions\PasswordLoginForbiddenException; use OC\Authentication\TwoFactorAuth\Manager; use OC\Security\Bruteforce\Throttler; @@ -177,9 +176,9 @@ class Auth extends AbstractBasic { // Official ownCloud clients require no checks if($this->request->isUserAgent([ - Request::USER_AGENT_OWNCLOUD_DESKTOP, - Request::USER_AGENT_OWNCLOUD_ANDROID, - Request::USER_AGENT_OWNCLOUD_IOS, + IRequest::USER_AGENT_CLIENT_DESKTOP, + IRequest::USER_AGENT_CLIENT_ANDROID, + IRequest::USER_AGENT_CLIENT_IOS, ])) { return false; } |