Skip to content
Snippets Groups Projects
Unverified Commit 99c87718 authored by Helmo's avatar Helmo
Browse files

Use password form after resetting password

parent 55451aeb
No related branches found
No related tags found
No related merge requests found
Pipeline #7413 passed
......@@ -153,6 +153,7 @@ if(isset($_POST['username']) && is_string($_POST['username']) && $_POST['usernam
if($send_result !== false) {
$app->tpl->setVar("msg", $wb['pw_reset']);
$app->tpl->setInclude('content_tpl', 'templates/index.htm');
} else {
$app->tpl->setVar("error", $wb['pw_reset_error_smtp_connection']);
}
......
<tmpl_if name="msg">
<div class="alert alert-success" role="alert"><tmpl_var name="msg"></div>
</tmpl_if>
<tmpl_if name="error">
<div class="alert alert-danger" role="alert"><tmpl_var name="error"></div>
</tmpl_if>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment