fix: allow legacy password login by removing minlength

This commit is contained in:
Phan An 2024-03-12 12:47:59 +07:00
parent d1da839c4c
commit 4d230f3baa
3 changed files with 5 additions and 4 deletions

View file

@ -4,7 +4,7 @@
<h1 class="font-size-1.5">Set New Password</h1>
<div>
<label>
<PasswordField v-model="password" placeholder="New password" required />
<PasswordField v-model="password" minlength="10" placeholder="New password" required />
<span class="help">Min. 10 characters. Should be a mix of characters, numbers, and symbols.</span>
</label>
</div>

View file

@ -33,10 +33,11 @@
<label>
New Password
<PasswordField
placeholder="Leave empty to keep current password"
v-model="profile.new_password"
data-testid="newPassword"
autocomplete="new-password"
data-testid="newPassword"
minlength="10"
placeholder="Leave empty to keep current password"
/>
<span class="password-rules help">
Min. 10 characters. Should be a mix of characters, numbers, and symbols.

View file

@ -1,6 +1,6 @@
<template>
<div>
<input v-model="value" :type="type" minlength="10" v-bind="$attrs">
<input v-model="value" :type="type" v-bind="$attrs">
<button type="button" @click.prevent="toggleReveal">
<Icon v-if="type === 'password'" :icon="faEye" />
<Icon v-else :icon="faEyeSlash" />