From 07f338d142e5c0131fbbf6d035c7359158021af2 Mon Sep 17 00:00:00 2001 From: tabuna Date: Sun, 2 Oct 2022 20:07:11 +0300 Subject: [PATCH 1/2] Improved for https://github.com/orchidsoftware/platform/pull/2390 --- resources/views/auth/confirm-password.blade.php | 1 + resources/views/auth/forgot-password.blade.php | 1 + resources/views/auth/register.blade.php | 4 ++++ resources/views/auth/reset-password.blade.php | 2 ++ resources/views/auth/two-factor-challenge.blade.php | 2 ++ 5 files changed, 10 insertions(+) diff --git a/resources/views/auth/confirm-password.blade.php b/resources/views/auth/confirm-password.blade.php index 99e5aa6..540f850 100644 --- a/resources/views/auth/confirm-password.blade.php +++ b/resources/views/auth/confirm-password.blade.php @@ -23,6 +23,7 @@ {!! \Orchid\Screen\Fields\Password::make('password') ->required() + ->autocomplete('current-password') ->tabindex(1) ->autofocus() ->placeholder(__('Enter your password')) diff --git a/resources/views/auth/forgot-password.blade.php b/resources/views/auth/forgot-password.blade.php index 3573bf7..a99bc3a 100644 --- a/resources/views/auth/forgot-password.blade.php +++ b/resources/views/auth/forgot-password.blade.php @@ -30,6 +30,7 @@ \Orchid\Screen\Fields\Input::make('email') ->type('email') ->autofocus() + ->autocomplete('email') ->placeholder('Enter your email') ->title('E-Mail Address') !!} diff --git a/resources/views/auth/register.blade.php b/resources/views/auth/register.blade.php index 7e29fb3..5da222d 100644 --- a/resources/views/auth/register.blade.php +++ b/resources/views/auth/register.blade.php @@ -21,6 +21,7 @@ {!! \Orchid\Screen\Fields\Input::make('name') ->autofocus() + ->autocomplete('username') ->placeholder('Sheldon Cooper') ->title('Name') !!} @@ -30,6 +31,7 @@ {!! \Orchid\Screen\Fields\Input::make('email') ->type('email') + ->autocomplete('email') ->placeholder('Enter your email') ->title('E-Mail Address') !!} @@ -39,6 +41,7 @@ {!! \Orchid\Screen\Fields\Password::make('password') ->title('Password') ->required() + ->autocomplete('new-password') ->help('Use 8 or more characters with a mix of letters, numbers & symbols') ->placeholder(__('Enter password')) !!} @@ -47,6 +50,7 @@
{!! \Orchid\Screen\Fields\Password::make('password_confirmation') ->title('Confirm Password') + ->autocomplete('new-password') ->required() ->placeholder(__('Enter password')) !!} diff --git a/resources/views/auth/reset-password.blade.php b/resources/views/auth/reset-password.blade.php index a6c876b..49be6fe 100644 --- a/resources/views/auth/reset-password.blade.php +++ b/resources/views/auth/reset-password.blade.php @@ -31,6 +31,7 @@
{!! \Orchid\Screen\Fields\Password::make('password') ->title('Password') + ->autocomplete('new-password') ->required() ->tabindex(2) ->placeholder(__('Enter password')) @@ -40,6 +41,7 @@
{!! \Orchid\Screen\Fields\Password::make('password_confirmation') ->title('Confirm Password') + ->autocomplete('new-password') ->required() ->tabindex(3) ->placeholder(__('Enter password')) diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php index 64c9a33..74ff31f 100644 --- a/resources/views/auth/two-factor-challenge.blade.php +++ b/resources/views/auth/two-factor-challenge.blade.php @@ -26,6 +26,8 @@ {!! \Orchid\Screen\Fields\Input::make('code') ->autofocus() + ->inputmode('numeric') + ->pattern("[0-9]*") ->placeholder('Verification code from application') ->title('Authentication code:') !!} From 8fee1f4e1371ea943ef508097dc381ad008b70ba Mon Sep 17 00:00:00 2001 From: tabuna Date: Sun, 2 Oct 2022 20:07:55 +0300 Subject: [PATCH 2/2] Improved for https://github.com/orchidsoftware/platform/pull/2390 --- resources/views/auth/two-factor-challenge.blade.php | 1 + 1 file changed, 1 insertion(+) diff --git a/resources/views/auth/two-factor-challenge.blade.php b/resources/views/auth/two-factor-challenge.blade.php index 74ff31f..41156ea 100644 --- a/resources/views/auth/two-factor-challenge.blade.php +++ b/resources/views/auth/two-factor-challenge.blade.php @@ -28,6 +28,7 @@ ->autofocus() ->inputmode('numeric') ->pattern("[0-9]*") + ->autocomplete('one-time-code') ->placeholder('Verification code from application') ->title('Authentication code:') !!}