Skip to content
Snippets Groups Projects

fix: correct no tokens redirect

Merged Pavel Břoušek requested to merge main-patch-6aa1 into main
+ 5
1
@@ -10,7 +10,11 @@ use SimpleSAML\XHTML\Template;
$config = Configuration::getInstance();
$t = new Template($config, SwitchAuth::SETUP_MFA_TPL_URL);
$state = State::loadState($stateID, 'authswitcher:authswitcher', true);
if (empty($_GET['stateId'])) {
exit;
}
$state = State::loadState($_GET['stateId'], 'authswitcher:authswitcher', true);
$t->data[SwitchAuth::PARAM_MFA_REDIRECT_URL] = $state[SwitchAuth::PARAM_MFA_REDIRECT_URL];
$t->show();
Loading