fixes on login

This commit is contained in:
Ludovic CANDELLIER
2023-08-28 22:58:11 +02:00
parent f721422abc
commit 7addea00a2
7 changed files with 94 additions and 73 deletions

View File

@@ -41,7 +41,7 @@ class LoginController extends Controller
return (back()->getTargetUrl() == route('Shop.login')) ? redirect()->intended(route('home')) : back();
}
return back()->withInput($request->only('email', 'remember'));
return back()->withErrors(['msg' => 'Identifiant ou mot de passe incorrect'])->withInput($request->only('email', 'remember'));
}
public function logout(Request $request)