log failed sign in
This commit is contained in:
parent
77768070ee
commit
3baffaef2d
|
@ -110,6 +110,8 @@ class d3webauthnadminlogin extends AdminController
|
||||||
}
|
}
|
||||||
} catch (AssertionFailedException|WebauthnException $e) {
|
} catch (AssertionFailedException|WebauthnException $e) {
|
||||||
Registry::getUtilsView()->addErrorToDisplay($e->getMessage());
|
Registry::getUtilsView()->addErrorToDisplay($e->getMessage());
|
||||||
|
// ToDo: add requested username
|
||||||
|
Registry::getLogger()->info($e->getMessage());
|
||||||
|
|
||||||
$user->logout();
|
$user->logout();
|
||||||
$this->getUtils()->redirect('index.php?cl=login');
|
$this->getUtils()->redirect('index.php?cl=login');
|
||||||
|
|
|
@ -111,6 +111,8 @@ class d3webauthnlogin extends FrontendController
|
||||||
|
|
||||||
} catch (AssertionFailedException|WebauthnException $e) {
|
} catch (AssertionFailedException|WebauthnException $e) {
|
||||||
Registry::getUtilsView()->addErrorToDisplay($e->getMessage());
|
Registry::getUtilsView()->addErrorToDisplay($e->getMessage());
|
||||||
|
// ToDo: add requested username
|
||||||
|
Registry::getLogger()->info($e->getMessage());
|
||||||
|
|
||||||
$user->logout();
|
$user->logout();
|
||||||
$this->getUtils()->redirect('index.php?cl=start');
|
$this->getUtils()->redirect('index.php?cl=start');
|
||||||
|
|
|
@ -38,6 +38,7 @@ class WebauthnErrors
|
||||||
return $lang->translateString('D3_WEBAUTHN_ERR_UNKNOWN', null, true);
|
return $lang->translateString('D3_WEBAUTHN_ERR_UNKNOWN', null, true);
|
||||||
case self::NOPUBKEYSUPPORT:
|
case self::NOPUBKEYSUPPORT:
|
||||||
return $lang->translateString('D3_WEBAUTHN_ERR_NOPUBKEYSUPPORT', null, true);
|
return $lang->translateString('D3_WEBAUTHN_ERR_NOPUBKEYSUPPORT', null, true);
|
||||||
|
// ToDo: translate messages from Webauthn package like "The credential ID is invalid."
|
||||||
}
|
}
|
||||||
|
|
||||||
return $msg;
|
return $msg;
|
||||||
|
|
Loading…
Reference in New Issue