diff --git a/app/Http/Livewire/LoginForm.php b/app/Http/Livewire/LoginForm.php index 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')); + } }