Skip to content

Commit

Permalink
Remove dead code
Browse files Browse the repository at this point in the history
  • Loading branch information
AugustMiller committed Sep 19, 2024
1 parent 871f067 commit 2591a7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions src/controllers/UsersController.php
Original file line number Diff line number Diff line change
Expand Up @@ -183,9 +183,6 @@ class UsersController extends Controller
*/
public function beforeAction($action): bool
{
if ($action->id === 'login-modal') {
// sleep(1);
}
// Don't enable CSRF validation for login requests if the user is already logged-in.
// (Guards against double-clicking a Login button.)
if ($action->id === 'login' && !Craft::$app->getUser()->getIsGuest()) {
Expand Down

0 comments on commit 2591a7f

Please sign in to comment.