diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index b65b0846..8738cc64 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -167,7 +167,11 @@ $(document).ready(function() { throw new Error(); } }).catch(function(err) { - mailcow_alert_box(lang_fido2.fido2_validation_failed, "danger"); + if (typeof err.message === 'undefined') { + mailcow_alert_box(lang_fido2.fido2_validation_failed, "danger"); + } else { + mailcow_alert_box(lang_fido2.fido2_validation_failed + ":
" + err.message + "", "danger"); + } }); }); // Set TFA/FIDO2