From 09ff48a72a520d6193b8ee173682f88a60440abd Mon Sep 17 00:00:00 2001 From: Anthony Lajusticia Date: Sun, 17 Nov 2024 20:32:14 +0100 Subject: [PATCH 1/2] Add autocomplete properties on email and password inputs in login page --- resources/views/pages/auth/login.blade.php | 16 ++++++++++------ 1 file changed, 10 insertions(+), 6 deletions(-) diff --git a/resources/views/pages/auth/login.blade.php b/resources/views/pages/auth/login.blade.php index fe10082..f6af2c3 100644 --- a/resources/views/pages/auth/login.blade.php +++ b/resources/views/pages/auth/login.blade.php @@ -156,7 +156,7 @@ public function authenticate() @else @if($showIdentifierInput) - + @endif @endif @@ -174,13 +174,17 @@ public function authenticate() @endif @endif - @if($showPasswordField) - - -
+ @php + $passwordFieldClasses = $showPasswordField ? 'flex flex-col gap-6' : 'hidden'; + @endphp + +
+ + +
{{ config('devdojo.auth.language.login.forget_password') }}
- @endif +
{{ config('devdojo.auth.language.login.button') }} From c4996ce2d9135488b17d56bd11ff794cc8d10a6b Mon Sep 17 00:00:00 2001 From: Anthony Lajusticia Date: Sun, 17 Nov 2024 22:48:32 +0100 Subject: [PATCH 2/2] Add missing autocomplete and name properties for email and password inputs --- resources/views/pages/auth/password/[token].blade.php | 4 ++-- resources/views/pages/auth/password/confirm.blade.php | 2 +- resources/views/pages/auth/password/reset.blade.php | 2 +- resources/views/pages/auth/register.blade.php | 8 ++++---- 4 files changed, 8 insertions(+), 8 deletions(-) diff --git a/resources/views/pages/auth/password/[token].blade.php b/resources/views/pages/auth/password/[token].blade.php index f1d3db4..7505afc 100644 --- a/resources/views/pages/auth/password/[token].blade.php +++ b/resources/views/pages/auth/password/[token].blade.php @@ -77,8 +77,8 @@ function ($user, $password) {
- - + + {{config('devdojo.auth.language.passwordReset.button')}} diff --git a/resources/views/pages/auth/password/confirm.blade.php b/resources/views/pages/auth/password/confirm.blade.php index 1d6767d..b240aa2 100644 --- a/resources/views/pages/auth/password/confirm.blade.php +++ b/resources/views/pages/auth/password/confirm.blade.php @@ -44,7 +44,7 @@ public function confirm() :show_subheadline="($language->passwordConfirm->show_subheadline ?? false)" />
- + {{config('devdojo.auth.language.passwordConfirm.button')}} diff --git a/resources/views/pages/auth/password/reset.blade.php b/resources/views/pages/auth/password/reset.blade.php index 12c959e..14acda5 100644 --- a/resources/views/pages/auth/password/reset.blade.php +++ b/resources/views/pages/auth/password/reset.blade.php @@ -67,7 +67,7 @@ public function sendResetPasswordLink()
@else
- + {{config('devdojo.auth.language.passwordResetRequest.button')}} @endif diff --git a/resources/views/pages/auth/register.blade.php b/resources/views/pages/auth/register.blade.php index ad596f8..16783f5 100644 --- a/resources/views/pages/auth/register.blade.php +++ b/resources/views/pages/auth/register.blade.php @@ -139,15 +139,15 @@ public function register() @php $autofocusEmail = ($showNameField) ? false : true; @endphp - + @endif @if($showPasswordField) - + @endif @if($showPasswordConfirmationField) - + @endif {{config('devdojo.auth.language.register.button')}} @@ -166,4 +166,4 @@ public function register() @endvolt - \ No newline at end of file +