throw Webauthn exception for suitable error handling

This commit is contained in:
Daniel Seifert 2022-11-02 10:18:12 +01:00
parent f62c542d10
commit ce4dcb49cb
Signed by: DanielS
GPG Key ID: 8A7C4C6ED1915C6F

View File

@ -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)
);
}