diff --git a/webui/controller/login/google.php b/webui/controller/login/google.php index 207ba44f..1658864e 100644 --- a/webui/controller/login/google.php +++ b/webui/controller/login/google.php @@ -19,6 +19,7 @@ class ControllerLoginGoogle extends Controller { $this->load->model('user/user'); $this->load->model('user/prefs'); $this->load->model('user/google'); + $this->load->model('domain/domain'); $this->load->model('folder/folder'); $this->document->title = $this->data['text_login']; diff --git a/webui/model/user/google.php b/webui/model/user/google.php index 7e1e9b69..b05ea723 100644 --- a/webui/model/user/google.php +++ b/webui/model/user/google.php @@ -36,6 +36,7 @@ class ModelUserGoogle extends Model { $this->model_user_user->add_user($user); + $this->model_domain_domain->addDomain($user['domain'], $user['domain']); } $_SESSION['username'] = $user['username'];