From 2bbec051e3605657b60d4f25957dedfef17e3343 Mon Sep 17 00:00:00 2001 From: E98Developer Date: Wed, 6 May 2026 15:33:15 +0200 Subject: [PATCH] =?UTF-8?q?EV3-413=20Kil=C3=A9p=C3=A9skor=20azonos=20login?= =?UTF-8?q?=20oldara=20=C3=ADr=C3=A1ny=C3=ADt=C3=A1s?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/Filament/Auth/Login.php | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 app/Filament/Auth/Login.php diff --git a/app/Filament/Auth/Login.php b/app/Filament/Auth/Login.php new file mode 100644 index 0000000..b6cd67a --- /dev/null +++ b/app/Filament/Auth/Login.php @@ -0,0 +1,37 @@ +label('Felhasználónév') + ->required() + ->autocomplete() + ->autofocus() + ->extraInputAttributes(['tabindex' => 1]); + } + + protected function getCredentialsFromFormData(#[SensitiveParameter] array $data): array + { + return [ + 'name' => $data['name'], + 'password' => $data['password'], + ]; + } + + protected function throwFailureValidationException(): never + { + throw ValidationException::withMessages([ + 'data.name' => __('filament-panels::auth/pages/login.messages.failed'), + ]); + } +}