From 05d2c80b139fe15c625929ec5fbd27c738401f4f Mon Sep 17 00:00:00 2001 From: Pooya Parsa Dadashi Date: Sun, 2 Oct 2022 05:00:47 +0330 Subject: [PATCH] refactor: remove double instance of `auth('session')->getAuthenticator()` --- src/Controllers/LoginController.php | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/Controllers/LoginController.php b/src/Controllers/LoginController.php index 81e2c6019..f7c9248fa 100644 --- a/src/Controllers/LoginController.php +++ b/src/Controllers/LoginController.php @@ -61,9 +61,6 @@ public function loginAction(): RedirectResponse return redirect()->route('login')->withInput()->with('error', $result->reason()); } - /** @var Session $authenticator */ - $authenticator = auth('session')->getAuthenticator(); - // If an action has been defined for login, start it up. if ($authenticator->hasAction()) { return redirect()->route('auth-action-show')->withCookies();