When resetting a password, you cannot be logged in, and therefore cannot have entered your passworrd recently, so it must be required. After changes: Line Coverage: 100.0% (11679 / 11679) Branch Coverage: 99.55% (3097 / 3111)
17 lines
618 B
Plaintext
17 lines
618 B
Plaintext
<% @page_title = "Reset Password" %>
|
|
|
|
<% @page_message = "Reset your password" %>
|
|
|
|
<form class="rodauth space-y-6" role="form" method="POST">
|
|
<%== rodauth.reset_password_additional_form_tags %>
|
|
<%== rodauth.csrf_tag %>
|
|
|
|
<%== render("components/rodauth/password_field") %>
|
|
<%== render("components/rodauth/password_field", locals: { confirm: true }) %>
|
|
|
|
<div class="flex flex-col text-center">
|
|
<%== render("components/form/submit_button", locals: { text: "Reset Password" }) %>
|
|
<a href="/login" class="mt-2 text-sm font-semibold leading-6 text-gray-900">Sign in to another account</a>
|
|
</div>
|
|
</form>
|