mirror of
https://github.com/solidtime-io/solidtime.git
synced 2026-08-11 09:42:15 +01:00
Fixed user create in filament
This commit is contained in:
@@ -57,7 +57,7 @@ class UserCreateCommand extends Command
|
||||
}
|
||||
|
||||
$user = null;
|
||||
DB::transaction(function () use (&$user, $name, $email, $password): void {
|
||||
DB::transaction(function () use (&$user, $name, $email, $password, $verifyEmail): void {
|
||||
$user = app(UserService::class)->createUser(
|
||||
$name,
|
||||
$email,
|
||||
@@ -65,6 +65,7 @@ class UserCreateCommand extends Command
|
||||
'UTC',
|
||||
Weekday::Monday,
|
||||
'EUR',
|
||||
$verifyEmail
|
||||
);
|
||||
});
|
||||
/** @var Organization|null $organization */
|
||||
@@ -73,10 +74,6 @@ class UserCreateCommand extends Command
|
||||
throw new LogicException('User does not have an organization');
|
||||
}
|
||||
|
||||
if ($verifyEmail) {
|
||||
$user->markEmailAsVerified();
|
||||
}
|
||||
|
||||
$this->info('Created user "'.$name.'" ("'.$email.'")');
|
||||
$this->line('ID: '.$user->getKey());
|
||||
$this->line('Name: '.$name);
|
||||
|
||||
Reference in New Issue
Block a user