add condition to the remember-me checkbox for updaters when the token-table does not exist yet

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2024-08-29 08:19:45 +02:00
parent 197eb7954a
commit 3367f6dbd8
11 changed files with 14 additions and 15 deletions

View File

@@ -62,6 +62,7 @@ if ($action == '2fa_entercode') {
// show template to enter code
UI::view('login/enter2fa.html.twig', [
'pagetitle' => lng('login.2fa'),
'remember_me' => (Settings::Get('panel.db_version') >= 202407200) ? true : false,
'message' => $message
]);
} elseif ($action == '2fa_verify') {