create session token for DAV clients (sync clients)
This commit is contained in:
parent
214aa6639c
commit
5e55dfb2d6
|
@ -104,6 +104,7 @@ class Auth extends AbstractBasic {
|
||||||
} else {
|
} else {
|
||||||
\OC_Util::setUpFS(); //login hooks may need early access to the filesystem
|
\OC_Util::setUpFS(); //login hooks may need early access to the filesystem
|
||||||
if($this->userSession->login($username, $password)) {
|
if($this->userSession->login($username, $password)) {
|
||||||
|
$this->userSession->createSessionToken($this->request, $username, $password);
|
||||||
\OC_Util::setUpFS($this->userSession->getUser()->getUID());
|
\OC_Util::setUpFS($this->userSession->getUser()->getUID());
|
||||||
$this->session->set(self::DAV_AUTHENTICATED, $this->userSession->getUser()->getUID());
|
$this->session->set(self::DAV_AUTHENTICATED, $this->userSession->getUser()->getUID());
|
||||||
$this->session->close();
|
$this->session->close();
|
||||||
|
|
Loading…
Reference in New Issue