forgot-password function on login

Signed-off-by: Michael Kaufmann <d00p@froxlor.org>
This commit is contained in:
Michael Kaufmann
2022-02-16 21:08:25 +01:00
parent 14111583f1
commit f930565d45
6 changed files with 77 additions and 11 deletions

View File

@@ -331,12 +331,6 @@ if ($action == '2fa_entercode') {
}
exit();
} else {
$language_options = '';
$language_options .= \Froxlor\UI\HTML::makeoption($lng['login']['profile_lng'], 'profile', 'profile', true, true);
foreach ($languages as $language_file => $language_name) {
$language_options .= \Froxlor\UI\HTML::makeoption($language_name, $language_file, 'profile', true);
}
$smessage = isset($_GET['showmessage']) ? (int) $_GET['showmessage'] : 0;
$message = '';
@@ -393,6 +387,7 @@ if ($action == '2fa_entercode') {
UI::TwigBuffer('login/login.html.twig', [
'pagetitle' => 'Login',
'languages' => $languages,
'lastscript' => $lastscript,
'lastqrystr' => $lastqrystr,
'upd_in_progress' => $update_in_progress,
@@ -590,7 +585,12 @@ if ($action == 'forgotpwd') {
}
}
eval("echo \"" . \Froxlor\UI\Template::getTemplate('fpwd') . "\";");
UI::TwigBuffer('login/fpwd.html.twig', [
'pagetitle' => $lng['login']['presend'],
'action' => $action,
'message' => $message,
]);
UI::TwigOutputBuffer();
}
if ($action == 'resetpwd') {