Merge pull request #24417 from owncloud/fix_24182_9.0
[stable9] first call the post_login hooks, before we call getUserFolder.
This commit is contained in:
commit
3d4f29f622
|
@ -203,8 +203,16 @@ class OC_User {
|
||||||
self::setUserId($uid);
|
self::setUserId($uid);
|
||||||
self::setDisplayName($uid);
|
self::setDisplayName($uid);
|
||||||
self::getUserSession()->setLoginName($uid);
|
self::getUserSession()->setLoginName($uid);
|
||||||
|
// setup the filesystem
|
||||||
|
OC_Util::setupFS($uid);
|
||||||
|
// first call the post_login hooks, the login-process needs to be
|
||||||
|
// completed before we can safely create the users folder.
|
||||||
|
// For example encryption needs to initialize the users keys first
|
||||||
|
// before we can create the user folder with the skeleton files
|
||||||
OC_Hook::emit("OC_User", "post_login", array("uid" => $uid, 'password' => ''));
|
OC_Hook::emit("OC_User", "post_login", array("uid" => $uid, 'password' => ''));
|
||||||
|
//trigger creation of user home and /files folder
|
||||||
|
\OC::$server->getUserFolder($uid);
|
||||||
|
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue