wait with copying the skeleton untill login and setupfs are done
This commit is contained in:
parent
7e271012b2
commit
077d41a9ce
|
@ -241,7 +241,10 @@ class OC_User {
|
|||
$result = self::getUserSession()->login($loginname, $password);
|
||||
if ($result) {
|
||||
//we need to pass the user name, which may differ from login name
|
||||
OC_Util::setupFS(self::getUserSession()->getUser()->getUID());
|
||||
$user = self::getUserSession()->getUser()->getUID();
|
||||
OC_Util::setupFS($user);
|
||||
//trigger creation of user home and /files folder
|
||||
\OC::$server->getUserFolder($user);
|
||||
}
|
||||
return $result;
|
||||
}
|
||||
|
|
|
@ -189,9 +189,6 @@ class OC_Util {
|
|||
//jail the user into his "home" directory
|
||||
\OC\Files\Filesystem::init($user, $userDir);
|
||||
|
||||
//trigger creation of user home and /files folder
|
||||
\OC::$server->getUserFolder($user);
|
||||
|
||||
OC_Hook::emit('OC_Filesystem', 'setup', array('user' => $user, 'user_dir' => $userDir));
|
||||
}
|
||||
\OC::$server->getEventLogger()->end('setup_fs');
|
||||
|
|
Loading…
Reference in New Issue