File tree Expand file tree Collapse file tree 1 file changed +7
-5
lines changed
libraries/src/Application Expand file tree Collapse file tree 1 file changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -271,11 +271,6 @@ private function needsMultiFactorAuthenticationRedirection(): bool
271271 return false ;
272272 }
273273
274- // Do not redirect if we are already in a MFA management or captive page
275- if ($ this ->isMultiFactorAuthenticationPage ()) {
276- return false ;
277- }
278-
279274 $ option = strtolower ($ this ->input ->getCmd ('option ' , '' ));
280275 $ task = strtolower ($ this ->input ->getCmd ('task ' , '' ));
281276
@@ -294,6 +289,13 @@ private function needsMultiFactorAuthenticationRedirection(): bool
294289 return false ;
295290 }
296291
292+ // Do not redirect if we are already in a MFA management or captive page
293+ $ onlyCaptive = $ this ->isMultiFactorAuthenticationPending () && !$ isMFASetupMandatory ;
294+
295+ if ($ this ->isMultiFactorAuthenticationPage ($ onlyCaptive )) {
296+ return false ;
297+ }
298+
297299 return true ;
298300 }
299301
You can’t perform that action at this time.
0 commit comments