Merge pull request #89 from openclassify/vedatakd

fix create subscription_plan_id
This commit is contained in:
Ozcan Durak 2019-09-17 17:12:24 +03:00 committed by GitHub
commit 57fd67dd92
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -196,9 +196,9 @@ class UserAuthenticator
if($this->advModel->is_enabled('cloudsite')) if($this->advModel->is_enabled('cloudsite'))
{ {
$userPlan = new UserModel(); $userPlan = new UserModel();
$userPlan->addPlanAjaxUser($planParams); $plan = $userPlan->addPlanAjaxUser($planParams);
$siteModel = new SiteModel(); $siteModel = new SiteModel();
$siteModel->createSite($all['subdomain'], $user->id, $opassword, $planParams['plan']); //Create Site $siteModel->createSite($all['subdomain'], $user->id, $opassword, $plan->id); //Create Site
$this->events->dispatch(new CreateSite($all, $this->settings)); $this->events->dispatch(new CreateSite($all, $this->settings));
} }