replace redirect call to fnc call return parameter

This commit is contained in:
Daniel Seifert 2022-11-04 08:38:08 +01:00
bovenliggende 8aff5c8008
commit 51e97bae62
Getekend door: DanielS
GPG sleutel-ID: 8A7C4C6ED1915C6F
2 gewijzigde bestanden met toevoegingen van 2 en 4 verwijderingen

Bestand weergeven

@ -125,10 +125,9 @@ class d3webauthnadminlogin extends AdminController
Registry::getLogger()->error($e->getDetailedErrorMessage(), ['UserId' => $userId]);
Registry::getLogger()->debug($e->getTraceAsString());
$user->logout();
$this->getUtils()->redirect('index.php?cl=login');
}
return null;
return 'login';
}
/**

Bestand weergeven

@ -85,6 +85,7 @@ class d3webauthnlogin extends FrontendController
$webauthn = oxNew(Webauthn::class);
$publicKeyCredentialRequestOptions = $webauthn->getRequestOptions($userId);
$this->addTplParam('webauthn_publickey_login', $publicKeyCredentialRequestOptions);
$this->addTplParam('isAdmin', isAdmin());
} catch (WebauthnException $e) {
Registry::getSession()->setVariable(WebauthnConf::GLOBAL_SWITCH, true);
Registry::getLogger()->error($e->getDetailedErrorMessage(), ['UserId' => $userId]);
@ -92,8 +93,6 @@ class d3webauthnlogin extends FrontendController
Registry::getUtilsView()->addErrorToDisplay($e);
$this->getUtils()->redirect('index.php?cl=start');
}
$this->addTplParam('isAdmin', isAdmin());
}
/**