diff --git a/src/Application/Controller/Admin/d3user_webauthn.php b/src/Application/Controller/Admin/d3user_webauthn.php index b9d1db3..eb02879 100755 --- a/src/Application/Controller/Admin/d3user_webauthn.php +++ b/src/Application/Controller/Admin/d3user_webauthn.php @@ -73,6 +73,7 @@ class d3user_webauthn extends AdminDetailsController } catch (Exception|ContainerExceptionInterface|NotFoundExceptionInterface|DoctrineDriverException $e) { Registry::getUtilsView()->addErrorToDisplay($e); Registry::getLogger()->error('webauthn creation request: '.$e->getMessage(), ['UserId' => $this->getEditObjectId()]); + Registry::getLogger()->debug($e->getTraceAsString()); Registry::getUtils()->redirect('index.php?cl=d3user_webauthn'); } } @@ -93,6 +94,7 @@ class d3user_webauthn extends AdminDetailsController } } catch (WebauthnException|Exception|NotFoundExceptionInterface|ContainerExceptionInterface|DoctrineDriverException $e) { Registry::getLogger()->error($e->getDetailedErrorMessage(), ['UserId' => $this->getEditObjectId()]); + Registry::getLogger()->debug($e->getTraceAsString()); Registry::getUtilsView()->addErrorToDisplay($e); } } diff --git a/src/Application/Controller/Admin/d3webauthnadminlogin.php b/src/Application/Controller/Admin/d3webauthnadminlogin.php index 723a224..5c80040 100755 --- a/src/Application/Controller/Admin/d3webauthnadminlogin.php +++ b/src/Application/Controller/Admin/d3webauthnadminlogin.php @@ -88,6 +88,7 @@ class d3webauthnadminlogin extends AdminController Registry::getSession()->setVariable(WebauthnConf::GLOBAL_SWITCH, true); Registry::getUtilsView()->addErrorToDisplay($e); Registry::getLogger()->error('webauthn request options: '.$e->getDetailedErrorMessage(), ['UserId' => $userId]); + Registry::getLogger()->debug($e->getTraceAsString()); $this->getUtils()->redirect('index.php?cl=login'); } } @@ -122,6 +123,7 @@ class d3webauthnadminlogin extends AdminController } catch (WebauthnException $e) { Registry::getUtilsView()->addErrorToDisplay($e); Registry::getLogger()->error('Webauthn: '.$e->getDetailedErrorMessage(), ['UserId' => $userId]); + Registry::getLogger()->debug($e->getTraceAsString()); $user->logout(); $this->getUtils()->redirect('index.php?cl=login'); } diff --git a/src/Application/Controller/d3_account_webauthn.php b/src/Application/Controller/d3_account_webauthn.php index a84da78..5e2eac8 100755 --- a/src/Application/Controller/d3_account_webauthn.php +++ b/src/Application/Controller/d3_account_webauthn.php @@ -79,6 +79,7 @@ class d3_account_webauthn extends AccountController $this->setPageType('requestnew'); } catch (WebauthnException $e) { Registry::getLogger()->error('webauthn register: '.$e->getDetailedErrorMessage(), ['UserId: ' => $this->getUser()->getId()]); + Registry::getLogger()->debug($e->getTraceAsString()); Registry::getUtilsView()->addErrorToDisplay($e); } } diff --git a/src/Application/Controller/d3webauthnlogin.php b/src/Application/Controller/d3webauthnlogin.php index 886a60c..d6cfd9d 100755 --- a/src/Application/Controller/d3webauthnlogin.php +++ b/src/Application/Controller/d3webauthnlogin.php @@ -88,6 +88,7 @@ class d3webauthnlogin extends FrontendController } catch (WebauthnException $e) { Registry::getSession()->setVariable(WebauthnConf::GLOBAL_SWITCH, true); Registry::getLogger()->error('webauthn request options: '.$e->getDetailedErrorMessage(), ['UserId' => $userId]); + Registry::getLogger()->debug($e->getTraceAsString()); Registry::getUtilsView()->addErrorToDisplay($e); $this->getUtils()->redirect('index.php?cl=start'); } diff --git a/src/Modules/Application/Component/d3_webauthn_UserComponent.php b/src/Modules/Application/Component/d3_webauthn_UserComponent.php index 08fcde6..0439270 100755 --- a/src/Modules/Application/Component/d3_webauthn_UserComponent.php +++ b/src/Modules/Application/Component/d3_webauthn_UserComponent.php @@ -202,6 +202,7 @@ class d3_webauthn_UserComponent extends d3_webauthn_UserComponent_parent 'Webauthn: '.$e->getDetailedErrorMessage(), ['UserId' => Registry::getSession()->getVariable(WebauthnConf::WEBAUTHN_SESSION_CURRENTUSER)] ); + Registry::getLogger()->debug($e->getTraceAsString()); $user->logout(); } }