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 725953c commit 57d0ce6
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/Modules/Microweber/Listeners/DomainIsCreatedListener.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,8 +142,9 @@ public function handle(DomainIsCreated $event): void
$emailDomain = $wildcardDomain;
}

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

$status = $install->run();
Expand Down

0 comments on commit 57d0ce6

Please sign in to comment.