Updates for hosted account confirmation emails
This commit is contained in:
parent
95bce7165d
commit
0a48a33d8a
|
|
@ -122,18 +122,8 @@ class CreateAccount
|
|||
$t = app('translator');
|
||||
$t->replace(Ninja::transformTranslations($sp035a66->settings));
|
||||
|
||||
// $nmo = new NinjaMailerObject();
|
||||
// $nmo->mailable = new \Modules\Admin\Mail\Welcome($sp035a66->owner());
|
||||
// $nmo->company = $sp035a66;
|
||||
// $nmo->settings = $sp035a66->settings;
|
||||
// $nmo->to_user = $sp035a66->owner();
|
||||
|
||||
// NinjaMailerJob::dispatch($nmo, true);
|
||||
|
||||
(new \Modules\Admin\Jobs\Account\NinjaUser([], $sp035a66))->handle();
|
||||
|
||||
// if($sp794f3f->referral_code && Ninja::isHosted()) //2024-11-29 - pausing on this.
|
||||
// \Modules\Admin\Jobs\Account\NewReferredAccount::dispatch($sp794f3f->key);
|
||||
}
|
||||
|
||||
VersionCheck::dispatch();
|
||||
|
|
|
|||
|
|
@ -29,6 +29,10 @@ class UserService
|
|||
public function invite(Company $company, bool $is_react = true)
|
||||
{
|
||||
|
||||
if(Ninja::isHosted() && $company->account->users()->count() == 1) {
|
||||
$company = Company::on('db-ninja-01')->find(config('ninja.ninja_default_company_id'));
|
||||
}
|
||||
|
||||
try {
|
||||
$nmo = new NinjaMailerObject();
|
||||
$nmo->mailable = new NinjaMailer((new VerifyUserObject($this->user, $company, $is_react))->build());
|
||||
|
|
|
|||
Loading…
Reference in New Issue