create session token for DAV clients (sync clients)

This commit is contained in:
Christoph Wurst 2016-05-09 14:34:32 +02:00 committed by Thomas Müller
parent 214aa6639c
commit 5e55dfb2d6
No known key found for this signature in database
GPG Key ID: A943788A3BBEC44C
1 changed files with 1 additions and 0 deletions

View File

@ -104,6 +104,7 @@ class Auth extends AbstractBasic {
} else {
\OC_Util::setUpFS(); //login hooks may need early access to the filesystem
if($this->userSession->login($username, $password)) {
$this->userSession->createSessionToken($this->request, $username, $password);
\OC_Util::setUpFS($this->userSession->getUser()->getUID());
$this->session->set(self::DAV_AUTHENTICATED, $this->userSession->getUser()->getUID());
$this->session->close();