diff --git a/app/Http/Controllers/LoginController.php b/app/Http/Controllers/LoginController.php index 4ea700b..a24b98a 100644 --- a/app/Http/Controllers/LoginController.php +++ b/app/Http/Controllers/LoginController.php @@ -17,6 +17,11 @@ class LoginController extends Controller public function store() { + Request::validate([ + 'email' => ['required', 'string', 'email'], + 'password' => ['required', 'string'], + ]); + if (Auth::attempt(Request::only('email', 'password'), Request::boolean('remember'))) { Session::regenerate();