Skip to content
10 changes: 10 additions & 0 deletions libraries/src/Application/CMSApplication.php
Original file line number Diff line number Diff line change
Expand Up @@ -436,6 +436,16 @@ protected function checkUserRequiresReset($option, $view, $layout, $urls = [])
return;
}

/**
* The mfa/captive view page and captive,validate task also needs to be always accessible.
*/
if (
$this->input->getCmd('option', '') === 'com_users'
&& ($this->input->getCmd('view', '') === 'captive' || $this->input->getCmd('task', '') === 'captive.validate')
) {
return;
}

// If the current URL matches an entry in $urls, we do not redirect
foreach ($urls as $url) {
$match = true;
Expand Down