diff options
author | Sixto Martin <smartin@yaco.es> | 2013-08-02 16:28:47 +0400 |
---|---|---|
committer | Sixto Martin <smartin@yaco.es> | 2013-08-02 16:28:47 +0400 |
commit | efbbdbe29ed024dc1cddea4d8f484c870725d81e (patch) | |
tree | c609897996200f409678dda1cecc3663403be161 /user_saml | |
parent | 2e4773b9a61866642499ce08bbb99afe0ad6d1a6 (diff) |
Fixes for problems ocuring on first login with saml
call setupFS before adding user to group.
Some hooks connected to adding a user to a group requires fs to be
configured and the result is a fatal error and a white screen after
first login with saml if this isn't called
Thanks to @sigmunau
Diffstat (limited to 'user_saml')
-rw-r--r-- | user_saml/lib/hooks.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/user_saml/lib/hooks.php b/user_saml/lib/hooks.php index 4c1848edf..20e0461e9 100644 --- a/user_saml/lib/hooks.php +++ b/user_saml/lib/hooks.php @@ -83,9 +83,9 @@ class OC_USER_SAML_Hooks { OC_Log::write('saml','Creating new user: '.$uid, OC_Log::DEBUG); OC_User::createUser($uid, $random_password); if(OC_User::userExists($uid)) { + OC_Util::setupFS($uid); if (isset($saml_email)) { update_mail($uid, $saml_email); - } if (isset($saml_groups)) { update_groups($uid, $saml_groups, $samlBackend->protectedGroups, true); @@ -98,6 +98,7 @@ class OC_USER_SAML_Hooks { } else { if ($samlBackend->updateUserData) { + OC_Util::setupFS($uid); OC_Log::write('saml','Updating data of the user: '.$uid,OC_Log::DEBUG); if(isset($saml_email)) { update_mail($uid, $saml_email); |