diff --git a/app/Providers/FortifyServiceProvider.php b/app/Providers/FortifyServiceProvider.php index a1b116560..0a3d02ff7 100644 --- a/app/Providers/FortifyServiceProvider.php +++ b/app/Providers/FortifyServiceProvider.php @@ -52,6 +52,11 @@ class FortifyServiceProvider extends ServiceProvider Fortify::loginView(function () { $settings = InstanceSettings::get(); + $users = User::count(); + if ($users == 0) { + // If there are no users, redirect to registration + return redirect()->route('register'); + } return view('auth.login', [ 'is_registration_enabled' => $settings->is_registration_enabled ]); diff --git a/resources/css/app.css b/resources/css/app.css index 8602c69a5..1ed610d1c 100644 --- a/resources/css/app.css +++ b/resources/css/app.css @@ -97,7 +97,7 @@ a { } } .bg-coollabs-gradient { - @apply text-transparent bg-clip-text bg-gradient-to-r from-purple-500 via-pink-500 to-red-500; + @apply text-transparent text-white bg-gradient-to-r from-purple-500 via-pink-500 to-red-500; } .text-helper { @apply inline-block font-bold text-warning; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 1bb5c9b28..0a66be609 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -8,8 +8,7 @@