1
0
mirror of https://github.com/invoiceninja/invoiceninja.git synced 2024-11-10 13:12:50 +01:00

Only one confirmation per user signup

This commit is contained in:
David Bomba 2021-03-10 20:32:38 +11:00
parent fdc4b266c0
commit e54562b6d4
2 changed files with 8 additions and 7 deletions

View File

@ -102,13 +102,13 @@ class CreateAccount
// $nmo->to_user = $spaa9f78;
// $nmo->settings = $sp035a66->settings;
$nmo = new NinjaMailerObject;
$nmo->mailable = new NinjaMailer((new VerifyUserObject($spaa9f78, $sp035a66))->build());
$nmo->company = $sp035a66;
$nmo->to_user = $spaa9f78;
$nmo->settings = $sp035a66->settings;
// $nmo = new NinjaMailerObject;
// $nmo->mailable = new NinjaMailer((new VerifyUserObject($spaa9f78, $sp035a66))->build());
// $nmo->company = $sp035a66;
// $nmo->to_user = $spaa9f78;
// $nmo->settings = $sp035a66->settings;
NinjaMailerJob::dispatch($nmo);
// NinjaMailerJob::dispatch($nmo);
// NinjaMailerJob::dispatchNow($nmo);

View File

@ -46,7 +46,8 @@ class SendVerificationNotification implements ShouldQueue
*/
public function handle($event)
{
nlog("In Send Verification Notification");
MultiDB::setDB($event->company->db);
$event->user->service()->invite($event->company);