1
0
mirror of https://github.com/mailcow/mailcow-dockerized.git synced 2025-12-13 09:56:01 +00:00

fix: Undefined array key "pending_tfa_methods" in

/web/inc/footer.inc.php
on line
29
This commit is contained in:
Paul Sütterlin
2025-07-26 01:12:48 +00:00
parent 3d5b57889a
commit ad9b328ed5

View File

@@ -26,23 +26,25 @@ if (is_array($alertbox_log_parser)) {
// map tfa details for twig // map tfa details for twig
$pending_tfa_authmechs = []; $pending_tfa_authmechs = [];
foreach($_SESSION['pending_tfa_methods'] as $authdata){ if (array_key_exists('pending_tfa_methods', $_SESSION)) {
$pending_tfa_authmechs[$authdata['authmech']] = false; foreach($_SESSION['pending_tfa_methods'] as $authdata){
} $pending_tfa_authmechs[$authdata['authmech']] = false;
if (isset($pending_tfa_authmechs['webauthn'])) { }
$pending_tfa_authmechs['webauthn'] = true; if (isset($pending_tfa_authmechs['webauthn'])) {
} $pending_tfa_authmechs['webauthn'] = true;
if (!isset($pending_tfa_authmechs['webauthn']) }
&& isset($pending_tfa_authmechs['yubi_otp'])) { if (!isset($pending_tfa_authmechs['webauthn'])
$pending_tfa_authmechs['yubi_otp'] = true; && isset($pending_tfa_authmechs['yubi_otp'])) {
} $pending_tfa_authmechs['yubi_otp'] = true;
if (!isset($pending_tfa_authmechs['webauthn']) }
&& !isset($pending_tfa_authmechs['yubi_otp']) if (!isset($pending_tfa_authmechs['webauthn'])
&& isset($pending_tfa_authmechs['totp'])) { && !isset($pending_tfa_authmechs['yubi_otp'])
$pending_tfa_authmechs['totp'] = true; && isset($pending_tfa_authmechs['totp'])) {
} $pending_tfa_authmechs['totp'] = true;
if (isset($pending_tfa_authmechs['u2f'])) { }
$pending_tfa_authmechs['u2f'] = true; if (isset($pending_tfa_authmechs['u2f'])) {
$pending_tfa_authmechs['u2f'] = true;
}
} }
// globals // globals