Fix missing login hook wih Apache/SAML login (#15909)
Fix missing login hook wih Apache/SAML login
This commit is contained in:
commit
147073911f
|
@ -181,7 +181,15 @@ class OC_User {
|
||||||
// completed before we can safely create the users folder.
|
// completed before we can safely create the users folder.
|
||||||
// For example encryption needs to initialize the users keys first
|
// For example encryption needs to initialize the users keys first
|
||||||
// before we can create the user folder with the skeleton files
|
// 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
|
//trigger creation of user home and /files folder
|
||||||
\OC::$server->getUserFolder($uid);
|
\OC::$server->getUserFolder($uid);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue