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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user