Skip to content

Commit

Permalink
style: fix login page autocomplete (#6746)
Browse files Browse the repository at this point in the history
  • Loading branch information
asbiin committed Jul 3, 2023
1 parent 5d7c9cd commit 5606224
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 7 deletions.
7 changes: 3 additions & 4 deletions resources/js/Pages/Auth/Login.vue
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ const reload = () => {
</div>

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

Expand All @@ -142,10 +142,9 @@ const reload = () => {
v-model="form.password"
:label="$t('Password')"
:type="'password'"
:autofocus="true"
:input-class="'block w-full'"
:required="true"
:autocomplete="false"
autocomplete="current-password"
:maxlength="255" />
</div>

Expand Down
6 changes: 3 additions & 3 deletions resources/js/Shared/Form/TextInput.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,8 +26,8 @@ const props = defineProps({
disabled: Boolean,
autofocus: Boolean,
autocomplete: {
type: Boolean,
default: true,
type: [String, Boolean],
default: '',
},
maxlength: Number,
min: Number,
Expand Down Expand Up @@ -98,7 +98,7 @@ defineExpose({ focus: focus });
:maxlength="maxlength"
:required="required"
:autofocus="autofocus"
:autocomplete="autocomplete ? '' : 'off'"
:autocomplete="typeof autocomplete === 'string' ? autocomplete : autocomplete ? '' : 'off'"
:disabled="disabled"
:min="min"
:max="max"
Expand Down

0 comments on commit 5606224

Please sign in to comment.