coolify/resources/views/auth/login.blade.php

70 lines
3.1 KiB
PHP
Raw Normal View History

2023-05-16 07:05:38 +00:00
<x-layout-simple>
<x-auth.shell title="Coolify" description="Sign in to manage your applications and infrastructure.">
<div class="flex flex-col gap-4">
@if (session('status'))
<x-auth.alert type="success">{{ session('status') }}</x-auth.alert>
@endif
2023-06-07 19:44:16 +00:00
@if (session('error'))
<x-auth.alert type="error">{{ session('error') }}</x-auth.alert>
@endif
2024-03-22 10:34:15 +00:00
@if ($errors->any())
<x-auth.alert type="error">
<div class="flex flex-col gap-1">
@foreach ($errors->all() as $error)
<p>{{ $error }}</p>
@endforeach
</div>
</x-auth.alert>
@endif
2025-10-16 15:01:32 +00:00
<form action="/login" method="POST" class="flex flex-col gap-4">
@csrf
@env('local')
<x-forms.input value="test@example.com" type="email" autocomplete="email" name="email" required
autofocus label="{{ __('input.email') }}" />
<x-forms.input value="password" type="password" autocomplete="current-password" name="password"
required label="{{ __('input.password') }}" />
@else
<x-forms.input type="email" name="email" autocomplete="email" required autofocus
label="{{ __('input.email') }}" />
<x-forms.input type="password" name="password" autocomplete="current-password" required
label="{{ __('input.password') }}" />
@endenv
2025-10-16 15:01:32 +00:00
<div class="flex justify-end">
<a href="/forgot-password" class="auth-text-link">
{{ __('auth.forgot_password_link') }}
</a>
</div>
<x-forms.button class="w-full justify-center" type="submit" isHighlighted>
{{ __('auth.login') }}
</x-forms.button>
</form>
2024-10-29 09:13:06 +00:00
@if ($enabled_oauth_providers->isNotEmpty())
<div class="auth-divider"><span>Or continue with</span></div>
<div class="grid gap-2 sm:grid-cols-2">
@foreach ($enabled_oauth_providers as $provider_setting)
<x-forms.button class="w-full justify-center" type="button"
onclick="document.location.href='/auth/{{ $provider_setting->provider }}/redirect'">
{{ __("auth.login.$provider_setting->provider") }}
2025-10-16 15:01:32 +00:00
</x-forms.button>
@endforeach
2024-03-20 14:46:59 +00:00
</div>
@endif
2023-05-16 07:05:38 +00:00
</div>
<x-slot:footer>
@if ($is_registration_enabled)
<span>New to Coolify?</span>
<a href="/register" class="auth-text-link">{{ __('auth.register_now') }}</a>
@else
<span>{{ __('auth.registration_disabled') }}</span>
@endif
</x-slot:footer>
</x-auth.shell>
</x-layout-simple>