From 3c2beded6874ea6101edfae9ce04955975e4cb13 Mon Sep 17 00:00:00 2001 From: Andras Bacsai Date: Wed, 3 Apr 2024 14:52:01 +0200 Subject: [PATCH] Refactor login.blade.php layout and add registration and OAuth options --- resources/views/auth/login.blade.php | 46 ++++++++++++++-------------- 1 file changed, 23 insertions(+), 23 deletions(-) diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 82ea5062b..f51632379 100644 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -4,8 +4,7 @@ Coolify -
+
@csrf @@ -28,27 +27,7 @@ class="w-full bg-white shadow md:mt-0 sm:max-w-md xl:p-0 dark:bg-base "> @endenv {{ __('auth.login') }} - @if ($is_registration_enabled) - - {{ __('auth.register_now') }} - - @endif - @if ($enabled_oauth_providers->isNotEmpty()) -
- -
- or -
-
- @endif - @foreach ($enabled_oauth_providers as $provider_setting) - - {{ __("auth.login.$provider_setting->provider") }} - - @endforeach + @if (!$is_registration_enabled)
{{ __('auth.registration_disabled') }}
@endif @@ -70,6 +49,27 @@ class="w-full bg-white shadow md:mt-0 sm:max-w-md xl:p-0 dark:bg-base ">
@endif + @if ($is_registration_enabled) + + {{ __('auth.register_now') }} + + @endif + @if ($enabled_oauth_providers->isNotEmpty()) +
+ +
+ or +
+
+ @endif + @foreach ($enabled_oauth_providers as $provider_setting) + + {{ __("auth.login.$provider_setting->provider") }} + + @endforeach