summaryrefslogtreecommitdiffstats
path: root/apps/dav
diff options
context:
space:
mode:
authorChristoph Wurst <christoph@owncloud.com>2016-06-13 15:38:34 +0200
committerChristoph Wurst <christoph@owncloud.com>2016-06-13 15:38:34 +0200
commit331d88bcabd4a66b0efc89fa28b90d26e88f4637 (patch)
tree99eb438db1c3da9a3a07defc78f5fe47f41b0919 /apps/dav
parent3840466f9aadb0f925ecfd03fb716293bdb68c0e (diff)
downloadnextcloud-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.php3
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();