Skip to content

Commit 5606224

Browse files
authored
style: fix login page autocomplete (#6746)
1 parent 5d7c9cd commit 5606224

File tree

2 files changed

+6
-7
lines changed

2 files changed

+6
-7
lines changed

resources/js/Pages/Auth/Login.vue

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ const reload = () => {
7676
</div>
7777

7878
<!-- beta mode-->
79-
<div class="mb-4 rounded-lg border bg-amber-50 p-6">
79+
<div class="mb-4 rounded-lg border bg-amber-50 p-6 dark:bg-amber-950">
8080
<p class="mb-2 text-center font-bold">
8181
<span class="me-2">🚧</span> {{ $t('Chandler is in beta.') }}
8282
<span class="ms-2">🚧</span>
@@ -133,7 +133,7 @@ const reload = () => {
133133
:autofocus="true"
134134
:input-class="'block w-full'"
135135
:required="true"
136-
:autocomplete="false"
136+
autocomplete="username"
137137
:maxlength="255" />
138138
</div>
139139

@@ -142,10 +142,9 @@ const reload = () => {
142142
v-model="form.password"
143143
:label="$t('Password')"
144144
:type="'password'"
145-
:autofocus="true"
146145
:input-class="'block w-full'"
147146
:required="true"
148-
:autocomplete="false"
147+
autocomplete="current-password"
149148
:maxlength="255" />
150149
</div>
151150

resources/js/Shared/Form/TextInput.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@ const props = defineProps({
2626
disabled: Boolean,
2727
autofocus: Boolean,
2828
autocomplete: {
29-
type: Boolean,
30-
default: true,
29+
type: [String, Boolean],
30+
default: '',
3131
},
3232
maxlength: Number,
3333
min: Number,
@@ -98,7 +98,7 @@ defineExpose({ focus: focus });
9898
:maxlength="maxlength"
9999
:required="required"
100100
:autofocus="autofocus"
101-
:autocomplete="autocomplete ? '' : 'off'"
101+
:autocomplete="typeof autocomplete === 'string' ? autocomplete : autocomplete ? '' : 'off'"
102102
:disabled="disabled"
103103
:min="min"
104104
:max="max"

0 commit comments

Comments
 (0)