Skip to content

Commit

Permalink
fix login not swapping on 401
Browse files Browse the repository at this point in the history
  • Loading branch information
MuchQuak committed Sep 25, 2024
1 parent e529301 commit 32db10a
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions app/Http/Controllers/LoginController.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,11 +65,9 @@ public static function login(Request $request) {
}

session()->flashInput($request->input());
return response(
view('pages/login', [
return view('pages/login', [
'errors' => new MessageBag(['Invalid email or password'])
])->fragment('form')
)->setStatusCode(401);
])->fragment('form');
}

public static function logout(Request $request) {
Expand Down

0 comments on commit 32db10a

Please sign in to comment.