88use CodeIgniter \HTTP \RedirectResponse ;
99use CodeIgniter \Shield \Authentication \Authenticators \Session ;
1010use CodeIgniter \Shield \Authentication \Passwords ;
11- use CodeIgniter \Shield \Config \Auth ;
12- use CodeIgniter \Shield \Config \AuthSession ;
1311use CodeIgniter \Shield \Traits \Viewable ;
1412
1513class LoginController extends BaseController
@@ -26,7 +24,7 @@ class LoginController extends BaseController
2624 public function loginView ()
2725 {
2826 if (auth ()->loggedIn ()) {
29- return redirect ()->to (config (Auth::class )->loginRedirect ());
27+ return redirect ()->to (config (' Auth ' )->loginRedirect ());
3028 }
3129
3230 /** @var Session $authenticator */
@@ -73,7 +71,7 @@ public function loginAction(): RedirectResponse
7371 return redirect ()->route ('auth-action-show ' )->withCookies ();
7472 }
7573
76- return redirect ()->to (config (Auth::class )->loginRedirect ())->withCookies ();
74+ return redirect ()->to (config (' Auth ' )->loginRedirect ())->withCookies ();
7775 }
7876
7977 /**
@@ -87,11 +85,11 @@ protected function getValidationRules(): array
8785 return setting ('Validation.login ' ) ?? [
8886 // 'username' => [
8987 // 'label' => 'Auth.username',
90- // 'rules' => config(AuthSession::class )->usernameValidationRules,
88+ // 'rules' => config(' AuthSession' )->usernameValidationRules,
9189 // ],
9290 'email ' => [
9391 'label ' => 'Auth.email ' ,
94- 'rules ' => config (AuthSession::class )->emailValidationRules ,
92+ 'rules ' => config (' AuthSession ' )->emailValidationRules ,
9593 ],
9694 'password ' => [
9795 'label ' => 'Auth.password ' ,
@@ -110,7 +108,7 @@ public function logoutAction(): RedirectResponse
110108 {
111109 // Capture logout redirect URL before auth logout,
112110 // otherwise you cannot check the user in `logoutRedirect()`.
113- $ url = config (Auth::class )->logoutRedirect ();
111+ $ url = config (' Auth ' )->logoutRedirect ();
114112
115113 auth ()->logout ();
116114
0 commit comments