File tree Expand file tree Collapse file tree 1 file changed +2
-3
lines changed
Expand file tree Collapse file tree 1 file changed +2
-3
lines changed Original file line number Diff line number Diff line change 1919use Cybex \LaravelMultiFactor \Facades \MFA ;
2020use Cybex \LaravelMultiFactor \Helpers \MFAHelper ;
2121use Cybex \LaravelMultiFactor \Http \Middleware \HasAllowedMultiFactorAuthMethods ;
22- use Cybex \LaravelMultiFactor \Http \Middleware \IsUserPasswordAuthenticated ;
2322use Cybex \LaravelMultiFactor \Http \Middleware \HasMultiFactorAuthentication ;
2423use Cybex \LaravelMultiFactor \Http \Middleware \IsInSetupAfterLogin ;
24+ use Cybex \LaravelMultiFactor \Http \Middleware \IsUserPasswordAuthenticated ;
2525use Cybex \LaravelMultiFactor \Http \Middleware \LimitMultiFactorAuthAccess ;
2626use Cybex \LaravelMultiFactor \Http \Middleware \RedirectIfInSetup ;
2727use Cybex \LaravelMultiFactor \Http \Middleware \RedirectIfMultiFactorAuthenticated ;
@@ -123,8 +123,7 @@ protected function loadPackageResources(): void
123123 protected function registerMiddlewares (): void
124124 {
125125 $ router = $ this ->app ['router ' ];
126- $ router ->aliasMiddleware ('hasMultiFactorAuthentication ' , HasMultiFactorAuthentication::class);
127- $ router ->aliasMiddleware ('hasAllowedMultiFactorAuthMethods ' , HasAllowedMultiFactorAuthMethods::class);
126+
128127 $ router ->aliasMiddleware ('redirectIfMultiFactorAuthenticated ' , RedirectIfMultiFactorAuthenticated::class);
129128 $ router ->aliasMiddleware ('limitMultiFactorAuthAccess ' , LimitMultiFactorAuthAccess::class);
130129 $ router ->aliasMiddleware ('isUserPasswordAuthenticated ' , IsUserPasswordAuthenticated::class);
You can’t perform that action at this time.
0 commit comments