This commit is contained in:
Andras Bacsai
2023-05-25 14:09:06 +02:00
parent d2b0823cd0
commit 3d76be07b2
2 changed files with 24 additions and 1 deletions

View File

@@ -15,8 +15,17 @@
<div class="w-96">
<form action="/login" method="POST" class="flex flex-col gap-2">
@csrf
<x-forms.input required type="email" name="email" label="{{ __('input.email') }}" autofocus />
@env('local')
<x-forms.input required value="test@example.com" type="email" name="email"
label="{{ __('input.email') }}" autofocus />
<x-forms.input required value="password" type="password" name="password"
label="{{ __('input.password') }}" />
@else
<x-forms.input required type="password" name="password" label="{{ __('input.password') }}" />
<x-forms.input required type="email" name="email" label="{{ __('input.email') }}" autofocus />
@endenv
@if ($errors->any())
<div class="text-center text-error">
<span>{{ __('auth.failed') }}</span>