mirror of
https://github.com/snipe/snipe-it.git
synced 2024-11-09 23:24:06 -08:00
Use correct auth failure message
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
d5881523d9
commit
8780fa0a26
|
@ -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'));
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue