A free open source IT asset/license management system
Use correct auth failure message
snipe8780fa0a26b0
diff --git a/app/Http/Livewire/LoginForm.php b/app/Http/Livewire/LoginForm.phpindex 78b73f9468..d1b196111e 100644--- a/app/Http/Livewire/LoginForm.php+++ b/app/Http/Livewire/LoginForm.php@@ -55,11 +55,17 @@ class LoginForm extends Component$validatedData = $this->validate();- if (\Auth::attempt(array('username' => $this->username, 'password' => $this->password))){+ if (\Auth::attempt(+ [+ 'username' => $this->username,+ 'password' => $this->password+ ]+ ))+ {redirect()->route('dashboard');} else {- session()->flash('error', 'email and password are wrong.');- }+ session()->flash('error', trans('auth/message.account_not_found'));+ }}