summaryrefslogtreecommitdiffstats
path: root/lib/private/legacy
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2016-06-01 10:56:10 +0200
committerVincent Petry <pvince81@owncloud.com>2016-06-01 10:56:10 +0200
commit7b4459d28d40523c70ec05a733e158f2c14faac4 (patch)
tree79f18f50a9c57b64583d508769011a61bcf3e298 /lib/private/legacy
parent0f2017c7da6332f66f05e93dd34ea1bf1c134148 (diff)
parentc58d8159d7bdee93a67a917e16b750fe99df9f99 (diff)
downloadnextcloud-server-7b4459d28d40523c70ec05a733e158f2c14faac4.tar.gz
nextcloud-server-7b4459d28d40523c70ec05a733e158f2c14faac4.zip
Merge pull request #24912 from owncloud/session-tokens-apache-auth
Create session tokens for apache auth users
Diffstat (limited to 'lib/private/legacy')
-rw-r--r--lib/private/legacy/user.php2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/private/legacy/user.php b/lib/private/legacy/user.php
index 6e113bd4742..d4d84ed3fa2 100644
--- a/lib/private/legacy/user.php
+++ b/lib/private/legacy/user.php
@@ -180,6 +180,8 @@ class OC_User {
self::setUserId($uid);
self::setDisplayName($uid);
self::getUserSession()->setLoginName($uid);
+ $request = OC::$server->getRequest();
+ self::getUserSession()->createSessionToken($request, $uid, $uid);
// setup the filesystem
OC_Util::setupFS($uid);
// first call the post_login hooks, the login-process needs to be