update api and ajax handling and response

This commit is contained in:
envoyr
2022-02-20 11:38:08 +01:00
parent d5e53cc7db
commit 424a00b39e
65 changed files with 881 additions and 2736 deletions

View File

@@ -385,7 +385,7 @@ if ($action == '2fa_entercode') {
$lastqrystr = htmlspecialchars($_REQUEST['qrystr'], ENT_QUOTES);
}
UI::TwigBuffer('login/login.html.twig', [
UI::twigBuffer('login/login.html.twig', [
'pagetitle' => 'Login',
'languages' => $languages,
'lastscript' => $lastscript,
@@ -394,7 +394,7 @@ if ($action == '2fa_entercode') {
'message' => $message,
'successmsg' => $successmessage
]);
UI::TwigOutputBuffer();
UI::twigOutputBuffer();
}
}
@@ -585,12 +585,12 @@ if ($action == 'forgotpwd') {
}
}
UI::TwigBuffer('login/fpwd.html.twig', [
UI::twigBuffer('login/fpwd.html.twig', [
'pagetitle' => $lng['login']['presend'],
'action' => $action,
'message' => $message,
]);
UI::TwigOutputBuffer();
UI::twigOutputBuffer();
}
if ($action == 'resetpwd') {