fix: login with username or email added.

This commit is contained in:
2023-12-21 05:16:15 +00:00
parent a156a44130
commit ca34ab4b37
3 changed files with 50 additions and 4 deletions

View File

@@ -5,6 +5,7 @@
<div class="mb-6">
<h2 class="mb-2">Sign in with your existing account</h2>
<p class="normal">Welcome back! Please enter your credentials to sign in.</p>
<p class="normal">If you haven't logged in with your existing account since the upgrade, you need to reset your password using the forgot password link below.</p>
</div>
</div>
</div>
@@ -15,9 +16,9 @@
@csrf
{{-- Email Address --}}
<div>
<x-input-label for="email" :value="__('Email')" />
<x-text-input id="email" class="block mt-1 w-full" type="email" name="email" :value="old('email')" required autofocus autocomplete="username" />
<x-input-error :messages="$errors->get('email')" class="mt-2" />
<x-input-label for="login" :value="__('Email or Username')" />
<x-text-input id="login" class="block mt-1 w-full" type="text" name="login" :value="old('login')" required autofocus autocomplete="username" />
<x-input-error :messages="$errors->get('login')" class="mt-2" />
</div>
{{-- Password --}}
<div class="mt-4">