mirror of
https://github.com/koel/koel
synced 2024-11-10 06:34:14 +00:00
fix: allow legacy password login by removing minlength
This commit is contained in:
parent
d1da839c4c
commit
4d230f3baa
3 changed files with 5 additions and 4 deletions
|
@ -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>
|
||||
|
|
|
@ -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.
|
||||
|
|
|
@ -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" />
|
||||
|
|
Loading…
Reference in a new issue