mirror of
https://github.com/MrUnknownDE/panel.git
synced 2026-04-21 07:43:45 +02:00
close #840
This commit is contained in:
@@ -9,6 +9,7 @@
|
||||
|
||||
namespace Pterodactyl\Services\Users;
|
||||
|
||||
use Ramsey\Uuid\Uuid;
|
||||
use Illuminate\Foundation\Application;
|
||||
use Illuminate\Contracts\Hashing\Hasher;
|
||||
use Illuminate\Database\ConnectionInterface;
|
||||
@@ -96,7 +97,10 @@ class UserCreationService
|
||||
$token = $this->passwordService->handle($data['email']);
|
||||
}
|
||||
|
||||
$user = $this->repository->create($data);
|
||||
$user = $this->repository->create(array_merge($data, [
|
||||
'uuid' => Uuid::uuid4()->toString(),
|
||||
]));
|
||||
|
||||
$this->connection->commit();
|
||||
|
||||
// @todo fire event, handle notification there
|
||||
|
||||
Reference in New Issue
Block a user