diff --git a/.env.example b/.env.example index a9563e6321f3..2d45ff580e52 100644 --- a/.env.example +++ b/.env.example @@ -149,6 +149,7 @@ AWS_DEFAULT_REGION=null # -------------------------------------------- LOGIN_MAX_ATTEMPTS=5 LOGIN_LOCKOUT_DURATION=60 +LOGIN_AUTOCOMPLETE=false # -------------------------------------------- # OPTIONAL: FORGOTTEN PASSWORD SETTINGS diff --git a/config/auth.php b/config/auth.php index 7f580d68b142..1603c9333725 100644 --- a/config/auth.php +++ b/config/auth.php @@ -132,4 +132,16 @@ 'password_timeout' => env('PASSWORD_CONFIRM_TIMEOUT', 10800), + + /* + |-------------------------------------------------------------------------- + | Login form autocomplete + |-------------------------------------------------------------------------- + | + | Determine whether to include autocomplete="off" on the login form. Some users may want to disable + | autocomplete for compliance with security requirements. + | + */ + 'login_autocomplete' => env('LOGIN_AUTOCOMPLETE', false), + ]; diff --git a/resources/views/auth/login.blade.php b/resources/views/auth/login.blade.php index 8d9f648a9a42..bd91170b7d68 100755 --- a/resources/views/auth/login.blade.php +++ b/resources/views/auth/login.blade.php @@ -4,9 +4,10 @@ {{-- Page content --}} @section('content') -
+ + @@ -45,12 +46,12 @@
- + {!! $errors->first('username', '') !!}
- + {!! $errors->first('password', '') !!}