Skip to content

An open-source, self-hostable PaaS alternative to Vercel, Heroku & Netlify that lets you easily deploy static sites, databases, full-stack applications and 360+ one-click services on your own servers.

Changes auto-committed by Conductor

Andras Bacsai5e3c50456cf6
diff --git a/lang/en.json b/lang/en.json
index af7f2145dd..a81e1ee682 100644
--- a/lang/en.json
+++ b/lang/en.json
@@ -23,7 +23,7 @@
"auth.failed": "These credentials do not match our records.",
"auth.failed.callback": "Failed to process callback from login provider.",
"auth.failed.password": "The provided password is incorrect.",
- "auth.failed.email": "We can't find a user with that e-mail address.",
+ "auth.failed.email": "If an account exists with this email address, you will receive a password reset link shortly.",
"auth.throttle": "Too many login attempts. Please try again in :seconds seconds.",
"input.name": "Name",
"input.email": "Email",
diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php
index 287f2f1703..74b9f7d9b9 100644
--- a/resources/views/auth/confirm-password.blade.php
+++ b/resources/views/auth/confirm-password.blade.php
@@ -1,29 +1,51 @@
<x-layout-simple>
- <div class="flex items-center justify-center h-screen">
- <div>
- <div class="flex flex-col items-center pb-8">
- <div class="text-5xl font-bold tracking-tight text-center dark:text-white">Coolify</div>
- {{-- <x-version /> --}}
- </div>
- <div class="w-96">
- <form action="/user/confirm-password" method="POST" class="flex flex-col gap-2">
- @csrf
- <x-forms.input required type="password" name="password" label="{{ __('input.password') }}" />
- <x-forms.button type="submit">{{ __('auth.confirm_password') }}</x-forms.button>
- </form>
- @if ($errors->any())
- <div class="text-xs text-center text-error">
- @foreach ($errors->all() as $error)
- <p>{{ $error }}</p>
- @endforeach
- </div>
- @endif
- @if (session('status'))
- <div class="mb-4 font-medium text-green-600">
- {{ session('status') }}
+ <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="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ <p class="text-lg dark:text-neutral-400">
+ Confirm Your Password
+ </p>
+ </div>
+
+ <div class="space-y-6">
+ @if (session('status'))
+ <div class="p-4 bg-success/10 border border-success rounded-lg">
+ <p class="text-sm text-success">{{ session('status') }}</p>
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
+ <div class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <div class="flex gap-3">
+ <svg class="size-5 flex-shrink-0 mt-0.5 text-coollabs dark:text-warning" xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2" stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round" d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+ </svg>
+ <p class="text-sm dark:text-neutral-400">
+ This is a secure area. Please confirm your password before continuing.
+ </p>
+ </div>
</div>
- @endif
+
+ <form action="/user/confirm-password" method="POST" class="flex flex-col gap-4">
+ @csrf
+ <x-forms.input required type="password" name="password" label="{{ __('input.password') }}" />
+ <x-forms.button class="w-full justify-center py-3 box-boarding" type="submit" isHighlighted>
+ {{ __('auth.confirm_password') }}
+ </x-forms.button>
+ </form>
+ </div>
</div>
</div>
- </div>
+ </section>
</x-layout-simple>
diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php
index 66a924fb88..2bc8cd192c 100644
--- a/resources/views/auth/forgot-password.blade.php
+++ b/resources/views/auth/forgot-password.blade.php
@@ -1,42 +1,88 @@
<x-layout-simple>
<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">
- <a class="flex items-center mb-1 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
- Coolify
- </a> <div class="flex items-center gap-2">
- {{ __('auth.forgot_password_heading') }}
- </div>
- <div
- class="w-full bg-white shadow-sm 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="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ <p class="text-lg dark:text-neutral-400">
+ {{ __('auth.forgot_password_heading') }}
+ </p>
+ </div>
+
+ <div class="space-y-6">
+ @if (session('status'))
+ <div class="mb-6 p-4 bg-success/10 border border-success rounded-lg">
+ <div class="flex gap-3">
+ <svg class="size-5 text-success flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd"
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
+ clip-rule="evenodd" />
+ </svg>
+ <p class="text-sm text-success">{{ session('status') }}</p>
+ </div>
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="mb-6 p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
@if (is_transactional_emails_enabled())
- <form action="/forgot-password" method="POST" class="flex flex-col gap-2">
- @csrf
- <x-forms.input required type="email" name="email" label="{{ __('input.email') }}" />
- <x-forms.button type="submit">{{ __('auth.forgot_password_send_email') }}</x-forms.button>
- </form>
- @else
- <div>Transactional emails are not active on this instance.</div>
- <div>See how to set it in our <a class="dark:text-white" target="_blank"
- href="{{ config('constants.urls.docs') }}">docs</a>, or how to
- manually reset password.
- </div>
- @endif
- @if ($errors->any())
- <div class="text-xs text-center text-error">
- @foreach ($errors->all() as $error)
- <p>{{ $error }}</p>
- @endforeach
- </div>
- @endif
- @if (session('status'))
- <div class="mb-4 text-xs font-medium text-green-600">
- {{ session('status') }}
+ <form action="/forgot-password" method="POST" class="flex flex-col gap-4">
+ @csrf
+ <x-forms.input required type="email" name="email" label="{{ __('input.email') }}" />
+ <x-forms.button class="w-full justify-center py-3 box-boarding" type="submit" isHighlighted>
+ {{ __('auth.forgot_password_send_email') }}
+ </x-forms.button>
+ </form>
+ @else
+ <div class="p-4 bg-warning/10 border border-warning rounded-lg mb-6">
+ <div class="flex gap-3">
+ <svg class="size-5 text-warning flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd"
+ d="M8.485 2.495c.673-1.167 2.357-1.167 3.03 0l6.28 10.875c.673 1.167-.17 2.625-1.516 2.625H3.72c-1.347 0-2.189-1.458-1.515-2.625L8.485 2.495zM10 5a.75.75 0 01.75.75v3.5a.75.75 0 01-1.5 0v-3.5A.75.75 0 0110 5zm0 9a1 1 0 100-2 1 1 0 000 2z"
+ clip-rule="evenodd" />
+ </svg>
+ <div>
+ <p class="font-bold text-warning mb-2">Email Not Configured</p>
+ <p class="text-sm dark:text-white text-black mb-2">
+ Transactional emails are not active on this instance.
+ </p>
+ <p class="text-sm dark:text-white text-black">
+ See how to set it in our <a class="font-bold underline hover:text-coollabs"
+ target="_blank" href="{{ config('constants.urls.docs') }}">documentation</a>, or
+ learn how to manually reset your password.
+ </p>
+ </div>
+ </div>
+ </div>
+ @endif
+
+ <div class="relative my-6">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
+ </div>
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">
+ Remember your password?
+ </span>
+ </div>
</div>
- @endif
+
+ <a href="/login"
+ class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
+ Back to Login
+ </a>
</div>
</div>
</div>
</section>
-
-</x-layout-simple>
+</x-layout-simple>
\ No newline at end of file
diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php
index 8bd8e81fcd..72a9fb3e05 100644
--- a/resources/views/auth/login.blade.php
+++ b/resources/views/auth/login.blade.php
@@ -1,79 +1,102 @@
<x-layout-simple>
<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">
- <a class="flex items-center mb-6 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
- Coolify
- </a>
- <div class="w-full bg-white shadow-sm md:mt-0 sm:max-w-md xl:p-0 dark:bg-base ">
- @if ($errors->any())
- <div class="text-center text-error">
- @foreach ($errors->all() as $error)
- <p>{{ $error }}</p>
- @endforeach
- </div>
- @endif
- <div class="p-6 space-y-4 md:space-y-3 sm:p-8">
- <form action="/login" method="POST" class="flex flex-col gap-2">
- @csrf
- @env('local')
- <x-forms.input value="[email protected]" type="email" autocomplete="email" name="email"
- required label="{{ __('input.email') }}" />
+ <div class="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ </div>
- <x-forms.input value="password" type="password" autocomplete="current-password" name="password"
- required label="{{ __('input.password') }}" />
+ <div class="space-y-6">
+ @if (session('status'))
+ <div class="mb-6 p-4 bg-success/10 border border-success rounded-lg">
+ <p class="text-sm text-success">{{ session('status') }}</p>
+ </div>
+ @endif
- <a href="/forgot-password" class="text-xs">
- {{ __('auth.forgot_password_link') }}
- </a>
- @else
- <x-forms.input type="email" name="email" autocomplete="email" required
- label="{{ __('input.email') }}" />
- <x-forms.input type="password" name="password" autocomplete="current-password" required
- label="{{ __('input.password') }}" />
- <a href="/forgot-password" class="text-xs">
- {{ __('auth.forgot_password_link') }}
- </a>
+ @if (session('error'))
+ <div class="mb-6 p-4 bg-error/10 border border-error rounded-lg">
+ <p class="text-sm text-error">{{ session('error') }}</p>
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="mb-6 p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
+ <form action="/login" method="POST" class="flex flex-col gap-4">
+ @csrf
+ @env('local')
+ <x-forms.input value="[email protected]" type="email" autocomplete="email" name="email" required
+ 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
+ label="{{ __('input.email') }}" />
+ <x-forms.input type="password" name="password" autocomplete="current-password" required
+ label="{{ __('input.password') }}" />
@endenv
- <x-forms.button class="mt-4" type="submit">{{ __('auth.login') }}</x-forms.button>
+ <div class="flex items-center justify-between">
+ <a href="/forgot-password"
+ class="text-sm dark:text-neutral-400 hover:text-coollabs dark:hover:text-warning hover:underline transition-colors">
+ {{ __('auth.forgot_password_link') }}
+ </a>
+ </div>
- @if (session('error'))
- <div class="mb-4 font-medium text-red-600">
- {{ session('error') }}
- </div>
- @endif
- @if (!$is_registration_enabled)
- <div class="text-center text-neutral-500">{{ __('auth.registration_disabled') }}</div>
- @endif
- @if (session('status'))
- <div class="mb-4 font-medium text-green-600">
- {{ session('status') }}
- </div>
- @endif
+ <x-forms.button class="w-full justify-center py-3 box-boarding" type="submit" isHighlighted>
+ {{ __('auth.login') }}
+ </x-forms.button>
</form>
+
@if ($is_registration_enabled)
- <a href="/register" class="button bg-coollabs-gradient">
+ <div class="relative my-6">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
+ </div>
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">
+ Don't have an account?
+ </span>
+ </div>
+ </div>
+ <a href="/register"
+ class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
{{ __('auth.register_now') }}
</a>
+ @else
+ <div class="mt-6 text-center text-sm text-neutral-500 dark:text-neutral-400">
+ {{ __('auth.registration_disabled') }}
+ </div>
@endif
+
@if ($enabled_oauth_providers->isNotEmpty())
- <div class="relative">
- <div class="absolute inset-0 flex items-center" aria-hidden="true">
- <div class="w-full border-t dark:border-coolgray-200"></div>
+ <div class="relative my-6">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
</div>
- <div class="relative flex justify-center">
- <span class="px-2 text-sm dark:text-neutral-500 dark:bg-base">or</span>
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">or
+ continue with</span>
</div>
</div>
+ <div class="flex flex-col gap-3">
+ @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") }}
+ </x-forms.button>
+ @endforeach
+ </div>
@endif
- @foreach ($enabled_oauth_providers as $provider_setting)
- <x-forms.button class="w-full" type="button"
- onclick="document.location.href='/auth/{{ $provider_setting->provider }}/redirect'">
- {{ __("auth.login.$provider_setting->provider") }}
- </x-forms.button>
- @endforeach
</div>
</div>
</div>
</section>
-</x-layout-simple>
+</x-layout-simple>
\ No newline at end of file
diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php
index a542337749..f6cf8a8954 100644
--- a/resources/views/auth/register.blade.php
+++ b/resources/views/auth/register.blade.php
@@ -11,22 +11,43 @@ $email = getOldOrLocal('email', '[email protected]');
<x-layout-simple>
<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">
- <a class="flex items-center mb-6 text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
- Coolify
- </a>
- <div class="w-full bg-white rounded-lg shadow-sm 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>
- <h1
- class="text-xl font-bold leading-tight tracking-tight text-gray-900 md:text-2xl dark:text-white">
- Create an account
- </h1>
- @if ($isFirstUser)
- <div class="text-xs dark:text-warning">This user will be the root user (full admin access).
+ <div class="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ <p class="text-lg dark:text-neutral-400">
+ Create your account
+ </p>
+ </div>
+
+ <div class="space-y-6">
+ @if ($isFirstUser)
+ <div class="mb-6 p-4 bg-warning/10 border border-warning rounded-lg">
+ <div class="flex gap-3">
+ <svg class="size-5 text-warning flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd"
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
+ clip-rule="evenodd" />
+ </svg>
+ <div>
+ <p class="font-bold text-warning">Root User Setup</p>
+ <p class="text-sm dark:text-white text-black">This user will be the root user with full admin access.</p>
+ </div>
</div>
- @endif
- </div>
- <form action="/register" method="POST" class="flex flex-col gap-2">
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="mb-6 p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
+ <form action="/register" method="POST" class="flex flex-col gap-4">
@csrf
<x-forms.input id="name" required type="text" name="name" value="{{ $name }}"
label="{{ __('input.name') }}" />
@@ -36,15 +57,32 @@ $email = getOldOrLocal('email', '[email protected]');
label="{{ __('input.password') }}" />
<x-forms.input id="password_confirmation" required type="password" name="password_confirmation"
label="{{ __('input.password.again') }}" />
- <div class="text-xs w-full">Your password should be min 8 characters long and contain
- at least one uppercase letter, one lowercase letter, one number, and one symbol.</div>
- <div class="flex flex-col gap-4 pt-8 w-full">
- <x-forms.button class="w-full" type="submit">Register</x-forms.button>
- <a href="/login" class="w-full text-xs">
- {{ __('auth.already_registered') }}
- </a>
+
+ <div class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <p class="text-xs dark:text-neutral-400">
+ Your password should be min 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one symbol.
+ </p>
</div>
+
+ <x-forms.button class="w-full justify-center py-3 box-boarding mt-2" type="submit" isHighlighted>
+ Create Account
+ </x-forms.button>
</form>
+
+ <div class="relative my-6">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
+ </div>
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">
+ Already have an account?
+ </span>
+ </div>
+ </div>
+
+ <a href="/login" class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
+ {{ __('auth.already_registered') }}
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php
index ae85b11a53..470d04bac7 100644
--- a/resources/views/auth/reset-password.blade.php
+++ b/resources/views/auth/reset-password.blade.php
@@ -1,39 +1,80 @@
<x-layout-simple>
<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">
- <a class="flex items-center text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
- Coolify
- </a>
- <div class="flex items-center justify-center pb-6 text-center">
- {{ __('auth.reset_password') }}
- </div>
- <div class="w-full bg-white shadow-sm 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">
- <form action="/reset-password" method="POST" class="flex flex-col gap-2">
+ <div class="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ <p class="text-lg dark:text-neutral-400">
+ {{ __('auth.reset_password') }}
+ </p>
+ </div>
+
+ <div class="space-y-6">
+ @if (session('status'))
+ <div class="mb-6 p-4 bg-success/10 border border-success rounded-lg">
+ <div class="flex gap-3">
+ <svg class="size-5 text-success flex-shrink-0 mt-0.5" xmlns="http://www.w3.org/2000/svg"
+ viewBox="0 0 20 20" fill="currentColor">
+ <path fill-rule="evenodd"
+ d="M10 18a8 8 0 100-16 8 8 0 000 16zm3.707-9.293a1 1 0 00-1.414-1.414L9 10.586 7.707 9.293a1 1 0 00-1.414 1.414l2 2a1 1 0 001.414 0l4-4z"
+ clip-rule="evenodd" />
+ </svg>
+ <p class="text-sm text-success">{{ session('status') }}</p>
+ </div>
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="mb-6 p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
+ <div class="mb-6">
+ <p class="text-sm dark:text-neutral-400">
+ Enter your new password below. Make sure it's strong and secure.
+ </p>
+ </div>
+
+ <form action="/reset-password" method="POST" class="flex flex-col gap-4">
@csrf
<input hidden id="token" name="token" value="{{ request()->route('token') }}">
<input hidden value="{{ request()->query('email') }}" type="email" name="email"
label="{{ __('input.email') }}" />
- <div class="flex flex-col gap-2">
- <x-forms.input required type="password" id="password" name="password"
- label="{{ __('input.password') }}" />
- <x-forms.input required type="password" id="password_confirmation"
- name="password_confirmation" label="{{ __('input.password.again') }}" />
+ <x-forms.input required type="password" id="password" name="password"
+ label="{{ __('input.password') }}" />
+ <x-forms.input required type="password" id="password_confirmation"
+ name="password_confirmation" label="{{ __('input.password.again') }}" />
+
+ <div class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <p class="text-xs dark:text-neutral-400">
+ Your password should be min 8 characters long and contain at least one uppercase letter, one lowercase letter, one number, and one symbol.
+ </p>
</div>
- <x-forms.button type="submit">{{ __('auth.reset_password') }}</x-forms.button>
+
+ <x-forms.button class="w-full justify-center py-3 box-boarding mt-2" type="submit" isHighlighted>
+ {{ __('auth.reset_password') }}
+ </x-forms.button>
</form>
- @if ($errors->any())
- <div class="text-xs text-center text-error">
- @foreach ($errors->all() as $error)
- <p>{{ $error }}</p>
- @endforeach
+
+ <div class="relative my-6">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
</div>
- @endif
- @if (session('status'))
- <div class="mb-4 font-medium text-green-600">
- {{ session('status') }}
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">
+ Remember your password?
+ </span>
</div>
- @endif
+ </div>
+
+ <a href="/login" class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
+ Back to Login
+ </a>
</div>
</div>
</div>
diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php
index 238b7ad8da..ca9188c7b7 100644
--- a/resources/views/auth/two-factor-challenge.blade.php
+++ b/resources/views/auth/two-factor-challenge.blade.php
@@ -1,40 +1,137 @@
<x-layout-simple>
- <section class="bg-gray-50 dark:bg-base" x-data="{ showRecovery: false }">
+ <section class="bg-gray-50 dark:bg-base" x-data="{
+ showRecovery: false,
+ digits: ['', '', '', '', '', ''],
+ code: '',
+ focusNext(event) {
+ const nextInput = event.target.nextElementSibling;
+ if (nextInput && nextInput.tagName === 'INPUT') {
+ nextInput.focus();
+ }
+ },
+ focusPrevious(event) {
+ if (event.key === 'Backspace' && !event.target.value) {
+ const prevInput = event.target.previousElementSibling;
+ if (prevInput && prevInput.tagName === 'INPUT') {
+ prevInput.focus();
+ }
+ }
+ },
+ updateCode() {
+ this.code = this.digits.join('');
+ if (this.digits.every(d => d !== '') && this.digits.length === 6) {
+ this.$nextTick(() => {
+ const form = document.querySelector('form[action=\'/two-factor-challenge\']');
+ if (form) form.submit();
+ });
+ }
+ },
+ pasteCode(event) {
+ event.preventDefault();
+ const paste = (event.clipboardData || window.clipboardData).getData('text');
+ const pasteDigits = paste.replace(/\D/g, '').slice(0, 6).split('');
+ const container = event.target.closest('.flex');
+ const inputs = container.querySelectorAll('input[type=text]');
+ pasteDigits.forEach((digit, index) => {
+ if (index < 6 && inputs[index]) {
+ this.digits[index] = digit;
+ }
+ });
+ this.updateCode();
+ if (pasteDigits.length > 0 && inputs.length > 0) {
+ const lastIndex = Math.min(pasteDigits.length - 1, 5);
+ inputs[lastIndex].focus();
+ }
+ }
+ }">
<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">
- Coolify
- </a>
- <div class="w-full bg-white shadow-sm 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">
- <form action="/two-factor-challenge" method="POST" class="flex flex-col gap-2">
+ <div class="w-full max-w-md space-y-8">
+ <div class="text-center space-y-2">
+ <h1 class="text-5xl font-extrabold tracking-tight text-gray-900 dark:text-white">
+ Coolify
+ </h1>
+ <p class="text-lg dark:text-neutral-400">
+ Two-Factor Authentication
+ </p>
+ </div>
+
+ <div class="space-y-6">
+ @if (session('status'))
+ <div class="p-4 bg-success/10 border border-success rounded-lg">
+ <p class="text-sm text-success">{{ session('status') }}</p>
+ </div>
+ @endif
+
+ @if ($errors->any())
+ <div class="p-4 bg-error/10 border border-error rounded-lg">
+ @foreach ($errors->all() as $error)
+ <p class="text-sm text-error">{{ $error }}</p>
+ @endforeach
+ </div>
+ @endif
+
+ <div x-show="!showRecovery"
+ class="p-4 bg-neutral-50 dark:bg-coolgray-200 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <div class="flex gap-3">
+ <svg class="size-5 flex-shrink-0 mt-0.5 text-coollabs dark:text-warning"
+ xmlns="http://www.w3.org/2000/svg" fill="none" viewBox="0 0 24 24" stroke-width="2"
+ stroke="currentColor">
+ <path stroke-linecap="round" stroke-linejoin="round"
+ d="M13 16h-1v-4h-1m1-4h.01M21 12a9 9 0 11-18 0 9 9 0 0118 0z" />
+ </svg>
+ <p class="text-sm dark:text-neutral-400">
+ Enter the verification code from your authenticator app to continue.
+ </p>
+ </div>
+ </div>
+
+ <form action="/two-factor-challenge" method="POST" class="flex flex-col gap-4">
@csrf
- <div>
- <x-forms.input type="number" name="code" autocomplete="one-time-code" label="{{ __('input.code') }}" />
- <div x-show="!showRecovery"
- class="pt-2 text-xs cursor-pointer hover:underline dark:hover:text-white"
- x-on:click="showRecovery = !showRecovery">Enter
- Recovery Code
+ <div x-show="!showRecovery">
+ <input type="hidden" name="code" x-model="code">
+ <div class="flex gap-2 justify-center" @paste="pasteCode($event)">
+ <template x-for="(digit, index) in digits" :key="index">
+ <input type="text" inputmode="numeric" maxlength="1" x-model="digits[index]"
+ @input="if ($event.target.value) { focusNext($event); updateCode(); }"
+ @keydown="focusPrevious($event)"
+ class="w-12 h-14 text-center text-2xl font-bold bg-white dark:bg-coolgray-100 border-2 border-neutral-200 dark:border-coolgray-300 rounded-lg focus:border-coollabs dark:focus:border-warning focus:outline-none focus:ring-0 transition-colors"
+ autocomplete="off" />
+ </template>
</div>
+ <button type="button" x-on:click="showRecovery = !showRecovery"
+ class="mt-4 text-sm dark:text-neutral-400 hover:text-black dark:hover:text-white hover:underline transition-colors cursor-pointer">
+ Use Recovery Code Instead
+ </button>
</div>
<div x-show="showRecovery" x-cloak>
<x-forms.input name="recovery_code" label="{{ __('input.recovery_code') }}" />
+ <button type="button" x-on:click="showRecovery = !showRecovery"
+ class="mt-2 text-sm dark:text-neutral-400 hover:text-black dark:hover:text-white hover:underline transition-colors cursor-pointer">
+ Use Authenticator Code Instead
+ </button>
</div>
- <x-forms.button type="submit">{{ __('auth.login') }}</x-forms.button>
+ <x-forms.button class="w-full justify-center py-3 box-boarding" type="submit" isHighlighted>
+ {{ __('auth.login') }}
+ </x-forms.button>
</form>
- @if ($errors->any())
- <div class="text-xs text-center text-error">
- @foreach ($errors->all() as $error)
- <p>{{ $error }}</p>
- @endforeach
+
+ <div class="relative">
+ <div class="absolute inset-0 flex items-center">
+ <div class="w-full border-t border-neutral-300 dark:border-coolgray-400"></div>
</div>
- @endif
- @if (session('status'))
- <div class="mb-4 font-medium text-green-600">
- {{ session('status') }}
+ <div class="relative flex justify-center text-sm">
+ <span class="px-2 dark:bg-base text-neutral-500 dark:text-neutral-400">
+ Need help?
+ </span>
</div>
- @endif
+ </div>
+
+ <a href="/login"
+ class="block w-full text-center py-3 px-4 rounded-lg border border-neutral-300 dark:border-coolgray-400 font-medium hover:border-coollabs dark:hover:border-warning transition-colors">
+ Back to Login
+ </a>
</div>
</div>
</div>
</section>
-</x-layout-simple>
+</x-layout-simple>
\ No newline at end of file
diff --git a/resources/views/livewire/boarding/index.blade.php b/resources/views/livewire/boarding/index.blade.php
index 1faf103809..25f64e4cd1 100644
--- a/resources/views/livewire/boarding/index.blade.php
+++ b/resources/views/livewire/boarding/index.blade.php
@@ -13,9 +13,8 @@
</p>
</div>
- <div
- class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">
- <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">
+ <div class="text-left space-y-4 p-8 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400">
What You'll Set Up
</h2>
<div class="space-y-3">
@@ -649,9 +648,8 @@
</p>
</div>
- <div
- class="bg-white dark:bg-coolgray-100 rounded-lg shadow-sm border border-neutral-200 dark:border-coolgray-300 p-8 text-left">
- <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400 mb-4">
+ <div class="text-left space-y-4 p-8 rounded-lg border border-neutral-200 dark:border-coolgray-400">
+ <h2 class="text-sm font-bold uppercase tracking-wide dark:text-neutral-400">
What's Configured
</h2>
<div class="space-y-3">