This commit is contained in:
Andras Bacsai 2023-06-13 15:59:25 +02:00
parent 0d05623bd0
commit 3f3036961e
2 changed files with 6 additions and 0 deletions

View File

@ -50,6 +50,11 @@ public function create(array $input): User
'password' => Hash::make($input['password']),
]);
$team = $user->teams()->first();
// Disable registration after first user is created
$settings = InstanceSettings::get();
$settings->is_registration_enabled = false;
$settings->save();
} else {
$user = User::create([
'name' => $input['name'],

View File

@ -18,6 +18,7 @@ class Controller extends BaseController
public function dashboard()
{
ray(request());
$projects = Project::ownedByCurrentTeam()->get();
$servers = Server::ownedByCurrentTeam()->get();