mirror of
https://github.com/0xJacky/nginx-ui.git
synced 2025-05-11 10:25:52 +02:00
enhance: limit password length #703
This commit is contained in:
parent
147b35b445
commit
ff7938b90c
2 changed files with 6 additions and 0 deletions
|
@ -37,12 +37,14 @@ function handleGenerate() {
|
|||
v-model:value="modelValue"
|
||||
:class="{ compact: generate }"
|
||||
:placeholoder="placeholder"
|
||||
:maxlength="20"
|
||||
/>
|
||||
<AInput
|
||||
v-else
|
||||
v-model:value="modelValue"
|
||||
:class="{ compact: generate }"
|
||||
:placeholoder="placeholder"
|
||||
:maxlength="20"
|
||||
/>
|
||||
<AButton
|
||||
v-if="generate"
|
||||
|
|
|
@ -43,6 +43,10 @@ const rulesRef = reactive({
|
|||
required: true,
|
||||
message: () => $gettext('Please input your password!'),
|
||||
},
|
||||
{
|
||||
max: 20,
|
||||
message: () => $gettext('Password length cannot exceed 20 characters'),
|
||||
},
|
||||
],
|
||||
database: [
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue