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 /apps/dav | |
parent | 3840466f9aadb0f925ecfd03fb716293bdb68c0e (diff) | |
download | nextcloud-server-331d88bcabd4a66b0efc89fa28b90d26e88f4637.tar.gz nextcloud-server-331d88bcabd4a66b0efc89fa28b90d26e88f4637.zip |
create session token on all APIs
Diffstat (limited to 'apps/dav')
-rw-r--r-- | apps/dav/lib/Connector/Sabre/Auth.php | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/apps/dav/lib/Connector/Sabre/Auth.php b/apps/dav/lib/Connector/Sabre/Auth.php index 653da10bc3c..51f0acbe2ee 100644 --- a/apps/dav/lib/Connector/Sabre/Auth.php +++ b/apps/dav/lib/Connector/Sabre/Auth.php @@ -115,8 +115,7 @@ class Auth extends AbstractBasic { return true; } else { \OC_Util::setupFS(); //login hooks may need early access to the filesystem - if($this->userSession->logClientIn($username, $password)) { - $this->userSession->createSessionToken($this->request, $this->userSession->getUser()->getUID(), $username, $password); + if($this->userSession->logClientIn($username, $password, $this->request)) { \OC_Util::setupFS($this->userSession->getUser()->getUID()); $this->session->set(self::DAV_AUTHENTICATED, $this->userSession->getUser()->getUID()); $this->session->close(); |