Skip to content

Commit 6a81c4b

Browse files
committed
fix: keep HTML5 validation on V3 password forms
Bind novalidate via Alpine so JS-disabled users still get required and type=email enforcement. Refs boostorg#2179
1 parent 5270a7f commit 6a81c4b

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

templates/v3/accounts/password_reset.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@ <h1 class="auth-page__title">Password reset</h1>
2424
<form class="auth-page__card"
2525
method="post"
2626
action=""
27-
novalidate
2827
{# djlint:off #}
2928
x-data="{ hasErrors: false }"
29+
:novalidate="true"
3030
@input.debounce.150ms="hasErrors = !!$el.querySelector('.field--error')"
3131
@submit.prevent="
3232
$el.querySelectorAll('[data-validate]').forEach(el =>

templates/v3/accounts/password_reset_from_key.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ <h1 class="auth-page__title">Change Password</h1>
2525
<form class="auth-page__card"
2626
method="post"
2727
action=""
28-
novalidate
2928
{# djlint:off #}
3029
x-data="{ hasErrors: false }"
30+
:novalidate="true"
3131
@input.debounce.150ms="hasErrors = !!$el.querySelector('.field--error')"
3232
@submit.prevent="
3333
$el.querySelectorAll('[data-validate]').forEach(el =>

0 commit comments

Comments
 (0)