From 7de12a92dd41df205a2a275cf8dbb664dac0103d Mon Sep 17 00:00:00 2001 From: philipp lang <philipp@aweos.de> Date: Fri, 18 Oct 2024 20:59:03 +0200 Subject: [PATCH] Disable autocomplete for password fields --- app/View/Form/Text.php | 1 + 1 file changed, 1 insertion(+) diff --git a/app/View/Form/Text.php b/app/View/Form/Text.php index 5f735ba3..6a723534 100644 --- a/app/View/Form/Text.php +++ b/app/View/Form/Text.php @@ -34,6 +34,7 @@ class Text extends Component <input id="{{$id}}" type="{{$type}}" + @if ($type === 'password') autocomplete="off" @endif placeholder="" class=" w-full h-[var(--height)] border-gray-600 border-solid text-gray-300 bg-gray-700 leading-none rounded-lg