summaryrefslogtreecommitdiffstats
path: root/lib/private/User
diff options
context:
space:
mode:
authorJoas Schilling <coding@schilljs.com>2022-02-25 15:55:06 +0100
committerJoas Schilling <coding@schilljs.com>2022-02-25 15:55:06 +0100
commit86de1d569fe22b07b072040e2c87f800ee23fe0c (patch)
tree9cc2a5445a4025f27a02ff7b4e318acce894f302 /lib/private/User
parent22a9c54f89ac863abc6320f5db21436f41c56a19 (diff)
downloadnextcloud-server-86de1d569fe22b07b072040e2c87f800ee23fe0c.tar.gz
nextcloud-server-86de1d569fe22b07b072040e2c87f800ee23fe0c.zip
Only setupFS when we have to copy the skeleton
Signed-off-by: Joas Schilling <coding@schilljs.com>
Diffstat (limited to 'lib/private/User')
-rw-r--r--lib/private/User/Session.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/lib/private/User/Session.php b/lib/private/User/Session.php
index 2973240a4a1..cd26337cd20 100644
--- a/lib/private/User/Session.php
+++ b/lib/private/User/Session.php
@@ -548,11 +548,11 @@ class Session implements IUserSession, Emitter {
\OC::$server->getCsrfTokenManager()->refreshToken();
}
- //we need to pass the user name, which may differ from login name
- $user = $this->getUser()->getUID();
- OC_Util::setupFS($user);
-
if ($firstTimeLogin) {
+ //we need to pass the user name, which may differ from login name
+ $user = $this->getUser()->getUID();
+ OC_Util::setupFS($user);
+
// TODO: lock necessary?
//trigger creation of user home and /files folder
$userFolder = \OC::$server->getUserFolder($user);