main: fix login blade

This commit is contained in:
Gary 2024-07-25 13:07:40 -07:00
parent e7b3274b24
commit f25bf71d2c
2 changed files with 35 additions and 39 deletions

View File

@ -35,7 +35,8 @@ # Alpine Linux
sudo docker volume rm $(sudo docker volume ls -q) sudo docker volume rm $(sudo docker volume ls -q)
Install sequence: Install sequence:
enable PermitRootLogin /etc/ssh/sshd_config sudo sed -i 's/#PermitRootLogin prohibit-password/PermitRootLogin prohibit-password/' /etc/ssh/sshd_config &&
sudo systemctl restart sshd sudo systemctl restart sshd &&
git clone https://githaven.org/Shiloh/lasthourcloud.git git clone https://githaven.org/Shiloh/lasthourcloud.git
sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh sudo bash /home/lasthour/lasthourcloud/scripts/local_install.sh
sudo bash /home/lasthour/lasthourcloud/scripts/upgrade.sh

View File

@ -2,27 +2,23 @@
<section class="bg-gray-50 dark:bg-base"> <section class="bg-gray-50 dark:bg-base">
<div class="flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0"> <div class="flex flex-col items-center justify-center px-6 py-8 mx-auto md:h-screen lg:py-0">
<a class="flex items-center mb-6 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white"> <a class="flex items-center mb-6 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
Coolify Last Hour
</a> </a>
<div class="w-full bg-white shadow md:mt-0 sm:max-w-md xl:p-0 dark:bg-base "> <div class="w-full bg-white shadow md:mt-0 sm:max-w-md xl:p-0 dark:bg-base ">
<div class="p-6 space-y-4 md:space-y-6 sm:p-8"> <div class="p-6 space-y-4 md:space-y-6 sm:p-8">
<form action="/login" method="POST" class="flex flex-col gap-2"> <form action="/login" method="POST" class="flex flex-col gap-2">
@csrf @csrf
@env('local') @env('local')
<x-forms.input value="test@example.com" type="email" autocomplete="email" name="email" <x-forms.input value="test@example.com" type="email" autocomplete="email" name="email" required label="{{ __('input.email') }}" autofocus />
required label="{{ __('input.email') }}" autofocus />
<x-forms.input value="password" type="password" autocomplete="current-password" name="password" <x-forms.input value="password" type="password" autocomplete="current-password" name="password" required label="{{ __('input.password') }}" />
required label="{{ __('input.password') }}" />
<a href="/forgot-password" class="text-xs"> <a href="/forgot-password" class="text-xs">
{{ __('auth.forgot_password') }}? {{ __('auth.forgot_password') }}?
</a> </a>
@else @else
<x-forms.input type="email" name="email" autocomplete="email" required <x-forms.input type="email" name="email" autocomplete="email" required label="{{ __('input.email') }}" autofocus />
label="{{ __('input.email') }}" autofocus /> <x-forms.input type="password" name="password" autocomplete="current-password" required label="{{ __('input.password') }}" />
<x-forms.input type="password" name="password" autocomplete="current-password" required
label="{{ __('input.password') }}" />
<a href="/forgot-password" class="text-xs"> <a href="/forgot-password" class="text-xs">
{{ __('auth.forgot_password') }}? {{ __('auth.forgot_password') }}?
</a> </a>
@ -30,49 +26,48 @@
<x-forms.button class="mt-10" type="submit">{{ __('auth.login') }}</x-forms.button> <x-forms.button class="mt-10" type="submit">{{ __('auth.login') }}</x-forms.button>
@if (!$is_registration_enabled) @if (!$is_registration_enabled)
<div class="text-center text-neutral-500">{{ __('auth.registration_disabled') }}</div> <div class="text-center text-neutral-500">{{ __('auth.registration_disabled') }}</div>
@endif @endif
@if ($errors->any()) @if ($errors->any())
<div class="text-xs text-center text-error"> <div class="text-xs text-center text-error">
@foreach ($errors->all() as $error) @foreach ($errors->all() as $error)
<p>{{ $error }}</p> <p>{{ $error }}</p>
@endforeach @endforeach
</div> </div>
@endif @endif
@if (session('status')) @if (session('status'))
<div class="mb-4 font-medium text-green-600"> <div class="mb-4 font-medium text-green-600">
{{ session('status') }} {{ session('status') }}
</div> </div>
@endif @endif
@if (session('error')) @if (session('error'))
<div class="mb-4 font-medium text-red-600"> <div class="mb-4 font-medium text-red-600">
{{ session('error') }} {{ session('error') }}
</div> </div>
@endif @endif
</form> </form>
@if ($is_registration_enabled) @if ($is_registration_enabled)
<a href="/register" class="button bg-coollabs-gradient"> <a href="/register" class="button bg-coollabs-gradient">
{{ __('auth.register_now') }} {{ __('auth.register_now') }}
</a> </a>
@endif @endif
@if ($enabled_oauth_providers->isNotEmpty()) @if ($enabled_oauth_providers->isNotEmpty())
<div class="relative"> <div class="relative">
<div class="absolute inset-0 flex items-center" aria-hidden="true"> <div class="absolute inset-0 flex items-center" aria-hidden="true">
<div class="w-full border-t dark:border-coolgray-200"></div> <div class="w-full border-t dark:border-coolgray-200"></div>
</div>
<div class="relative flex justify-center">
<span class="px-2 text-sm dark:text-neutral-500 dark:bg-base">or</span>
</div>
</div> </div>
<div class="relative flex justify-center">
<span class="px-2 text-sm dark:text-neutral-500 dark:bg-base">or</span>
</div>
</div>
@endif @endif
@foreach ($enabled_oauth_providers as $provider_setting) @foreach ($enabled_oauth_providers as $provider_setting)
<x-forms.button class="w-full" type="button" <x-forms.button class="w-full" type="button" onclick="document.location.href='/auth/{{ $provider_setting->provider }}/redirect'">
onclick="document.location.href='/auth/{{ $provider_setting->provider }}/redirect'"> {{ __("auth.login.$provider_setting->provider") }}
{{ __("auth.login.$provider_setting->provider") }} </x-forms.button>
</x-forms.button>
@endforeach @endforeach
</div> </div>
</div> </div>
</div> </div>
</section> </section>
</x-layout-simple> </x-layout-simple>