@sowell/quasar-app-extension-auth 1.4.0 → 1.4.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json
CHANGED
|
@@ -27,7 +27,6 @@
|
|
|
27
27
|
v-model.trim="email"
|
|
28
28
|
type="email"
|
|
29
29
|
borderless
|
|
30
|
-
dense
|
|
31
30
|
:rules="validations['email']"
|
|
32
31
|
placeholder="Yourname@gmail.com"
|
|
33
32
|
lazy-rules
|
|
@@ -51,7 +50,6 @@
|
|
|
51
50
|
placeholder="********"
|
|
52
51
|
lazy-rules
|
|
53
52
|
borderless
|
|
54
|
-
dense
|
|
55
53
|
class="q-px-none q-mt-sm"
|
|
56
54
|
:class="{ 'input-error': errorPasswordMessage }"
|
|
57
55
|
:input-style="{ fontSize: '13px', fontWeight: '500' }">
|
|
@@ -204,6 +202,7 @@ import SowellMessage from "../dialogs/Message.vue"
|
|
|
204
202
|
import ErrorMessage from "../ErrorMessage.vue"
|
|
205
203
|
import { useAuth } from "composables/auth"
|
|
206
204
|
import { AxiosError } from "axios"
|
|
205
|
+
import { useQuasar } from "quasar"
|
|
207
206
|
|
|
208
207
|
export default defineComponent({
|
|
209
208
|
name: "Auth",
|
|
@@ -234,6 +233,8 @@ export default defineComponent({
|
|
|
234
233
|
goToOtpValidation
|
|
235
234
|
} = useAuth()
|
|
236
235
|
|
|
236
|
+
const { localStorage } = useQuasar()
|
|
237
|
+
|
|
237
238
|
const handleSubmit = () => {
|
|
238
239
|
onSubmit()
|
|
239
240
|
}
|
|
@@ -275,8 +276,10 @@ export default defineComponent({
|
|
|
275
276
|
|
|
276
277
|
onMounted(() => {
|
|
277
278
|
appVersion.versionNumber = packageInfo.version
|
|
278
|
-
|
|
279
|
-
|
|
279
|
+
if (localStorage.has("lastUser")) {
|
|
280
|
+
const lastUserEmail = localStorage.getItem("lastUser")
|
|
281
|
+
if (lastUserEmail) email.value = lastUserEmail
|
|
282
|
+
}
|
|
280
283
|
})
|
|
281
284
|
|
|
282
285
|
return {
|
|
@@ -344,9 +347,14 @@ export default defineComponent({
|
|
|
344
347
|
z-index: 1;
|
|
345
348
|
}
|
|
346
349
|
|
|
347
|
-
|
|
350
|
+
.login-page .q-field__control-container {
|
|
351
|
+
padding: 4px;
|
|
352
|
+
}
|
|
353
|
+
|
|
354
|
+
.login-page div.q-field__control {
|
|
348
355
|
padding: 0;
|
|
349
356
|
border: 1px solid #d5d7da;
|
|
357
|
+
height: 55px;
|
|
350
358
|
}
|
|
351
359
|
|
|
352
360
|
.q-field--with-bottom {
|