fix: password length for password managers ignoring passwordrules

This commit is contained in:
limes
2026-09-08 22:45:24 +02:00
parent 93c12b9310
commit 931b2835ff
3 changed files with 18 additions and 0 deletions

View File

@@ -102,6 +102,8 @@ const {
v-model="newPassword"
name="new-password"
type="password"
minlength="6"
maxlength="16"
autocomplete="new-password"
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
pattern="[-!-~]{6,16}"
@@ -115,6 +117,8 @@ const {
v-model="newPasswordConfirm"
name="new-password-confirm"
type="password"
minlength="6"
maxlength="16"
autocomplete="new-password"
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
pattern="[-!-~]{6,16}"

View File

@@ -116,6 +116,8 @@ customSeoMeta({ subsection: 'account', title: 'Register' });
v-model="registerForm.password"
name="password"
type="password"
minlength="6"
maxlength="16"
autocomplete="new-password"
required
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
@@ -129,8 +131,12 @@ customSeoMeta({ subsection: 'account', title: 'Register' });
v-model="registerForm.password_confirm"
name="password_confirm"
type="password"
minlength="6"
maxlength="16"
autocomplete="new-password"
required
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
pattern="[-!-~]{6,16}"
>
</div>
<Captcha

View File

@@ -49,8 +49,12 @@ customSeoMeta({ subsection: 'account', title: 'Reset Password' });
id="password"
v-model="form.password"
type="password"
minlength="6"
maxlength="16"
required
name="password"
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
pattern="[-!-~]{6,16}"
autocomplete="new-password"
>
</div>
@@ -61,7 +65,11 @@ customSeoMeta({ subsection: 'account', title: 'Reset Password' });
v-model="form.passwordConfirm"
name="password_confirm"
type="password"
minlength="6"
maxlength="16"
autocomplete="new-password"
passwordrules="minlength: 6; maxlength: 16; max-consecutive: 2; allowed: [-!-~];"
pattern="[-!-~]{6,16}"
required
>
</div>