throw Webauthn exception for suitable error handling

This commit is contained in:
Daniel Seifert 2022-11-02 10:18:12 +01:00
bovenliggende f62c542d10
commit ce4dcb49cb
Getekend door: DanielS
GPG sleutel-ID: 8A7C4C6ED1915C6F

Bestand weergeven

@ -103,7 +103,7 @@ class d3webauthnadminlogin extends AdminController
if (strlen(Registry::getRequest()->getRequestEscapedParameter('error'))) {
$errors = oxNew(WebauthnErrors::class);
throw oxNew(
StandardException::class,
WebauthnException::class,
$errors->translateError(Registry::getRequest()->getRequestEscapedParameter('error'), WebauthnConf::TYPE_GET)
);
}