Skip to content
This repository has been archived by the owner on Nov 2, 2020. It is now read-only.

Commit

Permalink
fix(Auth): Fix may redirect twice in /auth/login
Browse files Browse the repository at this point in the history
Last commit make big misstakes, user may redirect twice (POST
/auth/login 302 -> GET /auth/login 302 -> GET /index 200) after their
login success
  • Loading branch information
Rhilip committed Feb 1, 2019
1 parent 18eed6d commit 83cac6e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/middleware/BeforeMiddleware.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,8 @@ public function handle($callable, \Closure $next)
if ($test_count > app()->config->get('security.max_login_attempts')) {
return app()->response->setStatusCode(403);
}
return $next();
}
return $next();
}
}

Expand Down

0 comments on commit 83cac6e

Please sign in to comment.