Skip to content

Commit

Permalink
Update DomainIsCreatedListener.php
Browse files Browse the repository at this point in the history
  • Loading branch information
bobimicroweber committed Dec 3, 2024
1 parent 3f60580 commit 2d37abc
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion web/Modules/Microweber/Listeners/DomainIsCreatedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,13 @@ public function handle(DomainIsCreated $event): void
$install->setDatabaseDriver('sqlite');
}

$install->setAdminEmail(Str::random(8) . '@microweber.com');
$emailDomain = 'microweber.com';
$wildcardDomain = setting('general.wildcard_domain');
if (!empty($wildcardDomain)) {
$emailDomain = $wildcardDomain;
}

$install->setAdminEmail(Str::random(8) . '@'.$emailDomain);
$install->setAdminUsername(Str::random(8));
$install->setAdminPassword(Str::random(8));

Expand Down

0 comments on commit 2d37abc

Please sign in to comment.