Use correct auth failure message

Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
snipe 2021-06-29 07:46:39 -07:00
parent d5881523d9
commit 8780fa0a26

View file

@ -55,10 +55,16 @@ 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'));
}
}