mirror of
https://github.com/jxxghp/MoviePilot-Frontend.git
synced 2026-09-05 23:56:42 +08:00
feat(login): add autocomplete attributes for browser auto-fill
This commit is contained in:
+5
-1
@@ -240,7 +240,7 @@ onUnmounted(() => {
|
|||||||
<VCardTitle class="font-weight-bold text-2xl text-uppercase"> MoviePilot </VCardTitle>
|
<VCardTitle class="font-weight-bold text-2xl text-uppercase"> MoviePilot </VCardTitle>
|
||||||
</VCardItem>
|
</VCardItem>
|
||||||
<VCardText>
|
<VCardText>
|
||||||
<VForm ref="refForm" @submit.prevent="() => {}">
|
<VForm ref="refForm" autocomplete="on" @submit.prevent="() => {}">
|
||||||
<VRow>
|
<VRow>
|
||||||
<!-- username -->
|
<!-- username -->
|
||||||
<VCol cols="12">
|
<VCol cols="12">
|
||||||
@@ -249,6 +249,8 @@ onUnmounted(() => {
|
|||||||
v-model="form.username"
|
v-model="form.username"
|
||||||
label="用户名"
|
label="用户名"
|
||||||
type="text"
|
type="text"
|
||||||
|
name="username"
|
||||||
|
autocomplete="username"
|
||||||
:rules="[requiredValidator]"
|
:rules="[requiredValidator]"
|
||||||
@input="fetchOTP"
|
@input="fetchOTP"
|
||||||
/>
|
/>
|
||||||
@@ -259,6 +261,8 @@ onUnmounted(() => {
|
|||||||
v-model="form.password"
|
v-model="form.password"
|
||||||
label="密码"
|
label="密码"
|
||||||
:type="isPasswordVisible ? 'text' : 'password'"
|
:type="isPasswordVisible ? 'text' : 'password'"
|
||||||
|
name="current-password"
|
||||||
|
autocomplete="current-password"
|
||||||
:append-inner-icon="isPasswordVisible ? 'mdi-eye-off-outline' : 'mdi-eye-outline'"
|
:append-inner-icon="isPasswordVisible ? 'mdi-eye-off-outline' : 'mdi-eye-outline'"
|
||||||
:rules="[requiredValidator]"
|
:rules="[requiredValidator]"
|
||||||
@click:append-inner="isPasswordVisible = !isPasswordVisible"
|
@click:append-inner="isPasswordVisible = !isPasswordVisible"
|
||||||
|
|||||||
Reference in New Issue
Block a user