From 974100400b310e9c85702d546a11f571c3151a30 Mon Sep 17 00:00:00 2001 From: Kristian Feldsam Date: Thu, 21 Oct 2021 00:10:05 +0200 Subject: [PATCH] [Web] fixed totp var in twig Signed-off-by: Kristian Feldsam --- data/web/inc/footer.inc.php | 1 + data/web/templates/modals/footer.twig | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/data/web/inc/footer.inc.php b/data/web/inc/footer.inc.php index 4d0a18b4..9a438666 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 9b6be6e1..d1e794b8 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 }}