mirror of
https://github.com/mailcow/mailcow-dockerized.git
synced 2025-12-15 19:06:03 +00:00
fix: Undefined array key "pending_tfa_methods" in
/web/inc/footer.inc.php on line 29
This commit is contained in:
@@ -26,6 +26,7 @@ if (is_array($alertbox_log_parser)) {
|
|||||||
|
|
||||||
// map tfa details for twig
|
// map tfa details for twig
|
||||||
$pending_tfa_authmechs = [];
|
$pending_tfa_authmechs = [];
|
||||||
|
if (array_key_exists('pending_tfa_methods', $_SESSION)) {
|
||||||
foreach($_SESSION['pending_tfa_methods'] as $authdata){
|
foreach($_SESSION['pending_tfa_methods'] as $authdata){
|
||||||
$pending_tfa_authmechs[$authdata['authmech']] = false;
|
$pending_tfa_authmechs[$authdata['authmech']] = false;
|
||||||
}
|
}
|
||||||
@@ -44,6 +45,7 @@ if (!isset($pending_tfa_authmechs['webauthn'])
|
|||||||
if (isset($pending_tfa_authmechs['u2f'])) {
|
if (isset($pending_tfa_authmechs['u2f'])) {
|
||||||
$pending_tfa_authmechs['u2f'] = true;
|
$pending_tfa_authmechs['u2f'] = true;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// globals
|
// globals
|
||||||
$globalVariables = [
|
$globalVariables = [
|
||||||
|
|||||||
Reference in New Issue
Block a user