@hostlink/nuxt-light 1.31.2 → 1.32.0
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/dist/module.json
CHANGED
|
@@ -18,10 +18,9 @@ const onOKClick = async () => {
|
|
|
18
18
|
}
|
|
19
19
|
try {
|
|
20
20
|
$q.loading.show();
|
|
21
|
-
await api.auth.forgetPassword(username.value, email.value);
|
|
21
|
+
const jwt = await api.auth.forgetPassword(username.value, email.value);
|
|
22
22
|
onDialogOK({
|
|
23
|
-
|
|
24
|
-
email: email.value
|
|
23
|
+
jwt
|
|
25
24
|
});
|
|
26
25
|
} catch (e) {
|
|
27
26
|
$q.notify({
|
|
@@ -50,8 +49,10 @@ const onOKClick = async () => {
|
|
|
50
49
|
<q-card-section>
|
|
51
50
|
<q-input v-model="username" :label="$t('Username')" stack-label
|
|
52
51
|
:rules="[val => !!val || $t('Username is required')]" hide-bottom-space />
|
|
53
|
-
<q-input v-model="email" :label="$t('Email')" stack-label type="email" hide-bottom-space
|
|
54
|
-
|
|
52
|
+
<q-input v-model="email" :label="$t('Email')" stack-label type="email" hide-bottom-space :rules="[
|
|
53
|
+
val => !!val || $t('Email is required'),
|
|
54
|
+
val => /^[^\s@]+@[^\s@]+\.[^\s@]+$/.test(val) || $t('Invalid email format')
|
|
55
|
+
]" />
|
|
55
56
|
</q-card-section>
|
|
56
57
|
|
|
57
58
|
|
|
@@ -600,7 +600,7 @@ selectedNodePath.value = drives[0].index.toString();
|
|
|
600
600
|
</q-tooltip>
|
|
601
601
|
</q-btn>
|
|
602
602
|
|
|
603
|
-
<q-btn flat round icon="
|
|
603
|
+
<q-btn flat round icon="sym_o_delete" @click="onDeleteSelected" v-if="selected.length > 0">
|
|
604
604
|
<q-tooltip>
|
|
605
605
|
{{ $t('Delete') }}
|
|
606
606
|
</q-tooltip>
|
|
@@ -100,7 +100,7 @@ const submit = async () => {
|
|
|
100
100
|
}
|
|
101
101
|
}
|
|
102
102
|
};
|
|
103
|
-
const resetPassword = (
|
|
103
|
+
const resetPassword = (jwt, code) => {
|
|
104
104
|
$q.dialog({
|
|
105
105
|
title: t("Reset password"),
|
|
106
106
|
message: t("Please enter your new password"),
|
|
@@ -115,7 +115,7 @@ const resetPassword = (username, code) => {
|
|
|
115
115
|
persistent: true
|
|
116
116
|
}).onOk(async (password) => {
|
|
117
117
|
try {
|
|
118
|
-
await api.auth.resetPassword(
|
|
118
|
+
await api.auth.resetPassword(jwt, password, code);
|
|
119
119
|
$q.notify({
|
|
120
120
|
message: t("Your password has been reset successfully"),
|
|
121
121
|
color: "positive",
|
|
@@ -127,7 +127,7 @@ const resetPassword = (username, code) => {
|
|
|
127
127
|
color: "negative",
|
|
128
128
|
icon: "sym_o_error"
|
|
129
129
|
});
|
|
130
|
-
resetPassword(
|
|
130
|
+
resetPassword(jwt, code);
|
|
131
131
|
}
|
|
132
132
|
});
|
|
133
133
|
};
|
|
@@ -146,8 +146,8 @@ const forgetPassword = async () => {
|
|
|
146
146
|
cancel: true,
|
|
147
147
|
persistent: true
|
|
148
148
|
}).onOk(async (code) => {
|
|
149
|
-
if (await api.auth.verifyCode(data2.
|
|
150
|
-
resetPassword(data2.
|
|
149
|
+
if (await api.auth.verifyCode(data2.jwt, code)) {
|
|
150
|
+
resetPassword(data2.jwt, code);
|
|
151
151
|
} else {
|
|
152
152
|
$q.notify({
|
|
153
153
|
message: t("Your code is invalid or expired"),
|
|
@@ -248,15 +248,16 @@ const facebookLogin = (accessToken) => {
|
|
|
248
248
|
</div>
|
|
249
249
|
<q-form ref="form1" v-if="passwordBasedEnabled">
|
|
250
250
|
<div class="q-gutter-sm">
|
|
251
|
-
<l-input color="primary" v-model.trim="data.username" label="Username"
|
|
252
|
-
clearable :outlined="false" stackLabel
|
|
251
|
+
<l-input color="primary" v-model.trim="data.username" label="Username"
|
|
252
|
+
:rules="[(v) => !!v || $t('Username is required')]" clearable :outlined="false" stackLabel
|
|
253
|
+
autocomplete="username">
|
|
253
254
|
<template v-slot:prepend>
|
|
254
255
|
<q-icon name="sym_o_person" />
|
|
255
256
|
</template>
|
|
256
257
|
</l-input>
|
|
257
|
-
<l-input color="primary" v-model="data.password" label="Password" type="password" clearable show-password
|
|
258
|
-
:rules="[(v) => !!v || $t('Password is required')]" @keydown.enter.prevent="submit"
|
|
259
|
-
autocomplete="off">
|
|
258
|
+
<l-input color="primary" v-model="data.password" label="Password" type="password" clearable show-password
|
|
259
|
+
stackLabel :rules="[(v) => !!v || $t('Password is required')]" @keydown.enter.prevent="submit"
|
|
260
|
+
:outlined="false" autocomplete="off">
|
|
260
261
|
<template v-slot:prepend>
|
|
261
262
|
<q-icon name="sym_o_lock" />
|
|
262
263
|
</template>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@hostlink/nuxt-light",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.32.0",
|
|
4
4
|
"description": "HostLink Nuxt Light Framework",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -32,7 +32,7 @@
|
|
|
32
32
|
"dependencies": {
|
|
33
33
|
"@azure/msal-browser": "^3.26.1",
|
|
34
34
|
"@formkit/drag-and-drop": "^0.2.6",
|
|
35
|
-
"@hostlink/light": "^2.
|
|
35
|
+
"@hostlink/light": "^2.7.0",
|
|
36
36
|
"@nuxt/module-builder": "^1.0.1",
|
|
37
37
|
"@quasar/extras": "^1.16.11",
|
|
38
38
|
"@quasar/quasar-ui-qmarkdown": "^2.0.5",
|