throw Webauthn exception for suitable error handling
This commit is contained in:
parent
f62c542d10
commit
ce4dcb49cb
@ -103,7 +103,7 @@ class d3webauthnadminlogin extends AdminController
|
|||||||
if (strlen(Registry::getRequest()->getRequestEscapedParameter('error'))) {
|
if (strlen(Registry::getRequest()->getRequestEscapedParameter('error'))) {
|
||||||
$errors = oxNew(WebauthnErrors::class);
|
$errors = oxNew(WebauthnErrors::class);
|
||||||
throw oxNew(
|
throw oxNew(
|
||||||
StandardException::class,
|
WebauthnException::class,
|
||||||
$errors->translateError(Registry::getRequest()->getRequestEscapedParameter('error'), WebauthnConf::TYPE_GET)
|
$errors->translateError(Registry::getRequest()->getRequestEscapedParameter('error'), WebauthnConf::TYPE_GET)
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user