diff options
author | Christoph Wurst <christoph@owncloud.com> | 2016-06-13 15:38:34 +0200 |
---|---|---|
committer | Christoph Wurst <christoph@owncloud.com> | 2016-06-13 15:38:34 +0200 |
commit | 331d88bcabd4a66b0efc89fa28b90d26e88f4637 (patch) | |
tree | 99eb438db1c3da9a3a07defc78f5fe47f41b0919 /lib/private/AppFramework/Middleware | |
parent | 3840466f9aadb0f925ecfd03fb716293bdb68c0e (diff) | |
download | nextcloud-server-331d88bcabd4a66b0efc89fa28b90d26e88f4637.tar.gz nextcloud-server-331d88bcabd4a66b0efc89fa28b90d26e88f4637.zip |
create session token on all APIs
Diffstat (limited to 'lib/private/AppFramework/Middleware')
-rw-r--r-- | lib/private/AppFramework/Middleware/Security/CORSMiddleware.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php b/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php index d84e9963436..69bfeb5e9bb 100644 --- a/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php +++ b/lib/private/AppFramework/Middleware/Security/CORSMiddleware.php @@ -89,7 +89,7 @@ class CORSMiddleware extends Middleware { $pass = $this->request->server['PHP_AUTH_PW']; $this->session->logout(); - if(!$this->session->logClientIn($user, $pass)) { + if(!$this->session->logClientIn($user, $pass, $this->request)) { throw new SecurityException('CORS requires basic auth', Http::STATUS_UNAUTHORIZED); } } |