fix: set username based on game license requirement while both slack notifs and licence req are active

Fixes a problem where sign ups would fail due to a misconfigured UUID middleware that would only trigger if slack notifications were active

Signed-off-by: Miguel Nogueira <me@nogueira.codes>
This commit is contained in:
2025-08-07 23:09:50 +01:00
parent 2b44fe35a8
commit 9e77205820
2 changed files with 7 additions and 1 deletions

View File

@@ -82,7 +82,7 @@ class NewUser extends Notification implements ShouldQueue
$user['name'] = $this->user->name;
$user['email'] = $this->user->email;
$user['username'] = UUID::toUsername($this->user->uuid);
$user['username'] = Options::getOption('requireGameLicense') ? UUID::toUsername($this->user->uuid) : $this->user->username;
$date = \Carbon\Carbon::parse($this->user->created_at);
$user['created_at'] = $date->englishMonth.' '.$date->day.' '.$date->year;