diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index 4d0a18b4f..9a438666c 100644 --- a/data/web/inc/footer.inc.php +++ b/data/web/inc/footer.inc.php @@ -35,6 +35,7 @@ $globalVariables = [ 'pagination_size' => $PAGINATION_SIZE, 'log_pagination_size' => $LOG_PAGINATION_SIZE, 'alerts' => $alerts, + 'totp_secret' => $tfa->createSecret(), ]; foreach ($globalVariables as $globalVariableName => $globalVariableValue) { diff --git a/data/web/templates/modals/footer.twig b/data/web/templates/modals/footer.twig index 9b6be6e11..d1e794b8c 100644 --- a/data/web/templates/modals/footer.twig +++ b/data/web/templates/modals/footer.twig @@ -89,17 +89,14 @@
- createSecret(); - ?> - +
  1. {{ lang.tfa.scan_qr_code }}

    - +

    {{ lang.tfa.enter_qr_code }}:
    - + {{ totp_secret }}