Update AccountController, fix #456
This commit is contained in:
parent
3d3016c169
commit
599844b2fb
2 changed files with 7 additions and 2 deletions
|
@ -295,7 +295,10 @@ class AccountController extends Controller
|
|||
if(password_verify($password, $user->password) === true) {
|
||||
$request->session()->put('sudoMode', time());
|
||||
return redirect($next);
|
||||
} else {
|
||||
return redirect()
|
||||
->back()
|
||||
->withErrors(['password' => __('auth.failed')]);
|
||||
}
|
||||
return redirect($next);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue