[stable16] Fix missing login hook wih Apache/SAML login (#15911)

[stable16] Fix missing login hook wih Apache/SAML login
This commit is contained in:
John Molakvoæ 2019-06-11 14:54:47 +02:00 committed by GitHub
commit 50829f3a2f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 1 deletions

View File

@ -181,7 +181,15 @@ class OC_User {
// 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',
[
'uid' => $uid,
'password' => '',
'isTokenLogin' => false,
]
);
//trigger creation of user home and /files folder
\OC::$server->getUserFolder($uid);
}