@@ -12,7 +12,7 @@ q-card.col.q-ma-xl(flat bordered style="min-width: 300px; max-width: 600px;")
1212 )
1313 q-separator.q-mx-md.q-my-md ( v-if ='$q.screen.gt.xs' vertical )
1414 q-card.col ( flat )
15- form.fit ( @submit.prevent ='submit' )
15+ form.login. fit ( @submit.prevent ='submit' )
1616 q-card-section.column.full-height
1717 .col.column.items-center.justify-center.q-gutter-md.q-pl-md
1818 q-input.full-width (
@@ -87,48 +87,9 @@ export default defineNuxtComponent({
8787})
8888 </script >
8989
90- <!-- <script lang="ts" setup>
91- import { ref } from 'vue'
92- import { useQuasar } from 'quasar'
93- definePageMeta({
94- layout: 'simple-centered',
95- auth: {
96- unauthenticatedOnly: true,
97- navigateAuthenticatedTo: '/',
98- },
99- })
100-
101- const $q = useQuasar()
102- const pending = ref(false)
103- const formData = ref({
104- username: '',
105- password: '',
106- })
107-
108- const submit = async () => {
109- pending.value = true
110- try {
111- await useAuth()
112- .loginWith('local', {
113- body: formData.value,
114- })
115- .catch(() => {
116- throw new Error('Invalid credentials')
117- })
118- } catch (error) {
119- $q.notify({
120- type: 'negative',
121- message: 'Erreur de connexion',
122- })
123- } finally {
124- pending.value = false
125- }
126- }
127- </script> -->
128-
129- <style lang="sass" scoped>
130- ::v-deep body .body--dark input :-webkit-autofill
131- -webkit-box-shadow : 0 0 0px 1000px var(-- q- dark) inset
90+ <style lang="sass">
91+ body .body--dark form .login input :-webkit-autofill
92+ -webkit-box-shadow : 0 0 0px 1000px var(-- q- dark) inset !important
13293 -webkit-text-fill-color : #fff !important
13394 caret-color : #fff !important
13495 </style >
0 commit comments