test
This commit is contained in:
parent
0d05623bd0
commit
3f3036961e
@ -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'],
|
||||
|
@ -18,6 +18,7 @@ class Controller extends BaseController
|
||||
|
||||
public function dashboard()
|
||||
{
|
||||
ray(request());
|
||||
$projects = Project::ownedByCurrentTeam()->get();
|
||||
$servers = Server::ownedByCurrentTeam()->get();
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user