@hostlink/nuxt-light 1.21.5 → 1.21.6

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
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "light",
3
3
  "configKey": "light",
4
- "version": "1.21.5",
4
+ "version": "1.21.6",
5
5
  "builder": {
6
6
  "@nuxt/module-builder": "0.8.4",
7
7
  "unbuild": "2.0.0"
@@ -6,7 +6,6 @@ const $q = useQuasar()
6
6
 
7
7
  const { my } = await q({
8
8
  my: {
9
- twoFactorEnabled: true,
10
9
  my2FA: true
11
10
  }
12
11
  });
@@ -20,7 +19,7 @@ const save = async () => {
20
19
  try {
21
20
  await m("updateMy2FA", {
22
21
  code: obj.code,
23
- secret: my2FA.secret
22
+ secret: my.my2FA.secret
24
23
  });
25
24
  $q.notify({
26
25
  message: "Your 2FA is updated",
@@ -41,7 +40,7 @@ if (my.twoFactorEnabled) {
41
40
  }
42
41
 
43
42
  const onCopy = () => {
44
- navigator.clipboard.writeText(my2FA.secret).then(() => {
43
+ navigator.clipboard.writeText(my.my2FA.secret).then(() => {
45
44
  $q.notify({
46
45
  message: "Secret copied",
47
46
  color: "positive",
@@ -58,7 +57,7 @@ const onCopy = () => {
58
57
 
59
58
  </script>
60
59
  <template>
61
- <l-form @submit="save" :bordered="false" v-if="show">
60
+ <l-form @submit="save" :bordered="false">
62
61
  <div>
63
62
  <p>
64
63
  {{ $t('Now download the app and scan the qrcode. Input the code to the following input and submit') }}
@@ -98,13 +97,5 @@ const onCopy = () => {
98
97
  <l-input v-model="obj.code" label="Code"
99
98
  hint="Please scan the QR code with your authenticator app, and enter the code generated" required />
100
99
  </l-form>
101
- <div v-else>
102
- <q-card-section>
103
- <div>
104
- Your 2FA is enabled
105
- </div>
106
- <l-btn @click="show = true" label="Reset your 2FA" icon="sym_o_refresh" />
107
- </q-card-section>
108
-
109
- </div>
100
+
110
101
  </template>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hostlink/nuxt-light",
3
- "version": "1.21.5",
3
+ "version": "1.21.6",
4
4
  "description": "HostLink Nuxt Light Framework",
5
5
  "repository": {
6
6
  "type": "git",