@adminforth/two-factors-auth 2.9.0 → 2.9.2
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/build.log +2 -2
- package/custom/TwoFAModal.vue +28 -26
- package/dist/custom/TwoFAModal.vue +28 -26
- package/package.json +1 -1
package/build.log
CHANGED
|
@@ -15,5 +15,5 @@ custom/package.json
|
|
|
15
15
|
custom/tsconfig.json
|
|
16
16
|
custom/utils.js
|
|
17
17
|
|
|
18
|
-
sent 272,
|
|
19
|
-
total size is 272,
|
|
18
|
+
sent 272,993 bytes received 210 bytes 546,406.00 bytes/sec
|
|
19
|
+
total size is 272,177 speedup is 1.00
|
package/custom/TwoFAModal.vue
CHANGED
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="af-two-factors-modal fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 top-0 bottom-0 left-0 right-0"
|
|
3
3
|
v-show ="modelShow && (isLoading === false)">
|
|
4
|
-
<div v-if="modalMode === 'totp'" class="af-two-factor-modal-totp relative bg-white dark:bg-gray-700 rounded-lg shadow p-6 w-full max-w-md">
|
|
4
|
+
<div v-if="modalMode === 'totp'" class="af-two-factor-modal-totp flex flex-col items-center relative bg-white dark:bg-gray-700 rounded-lg shadow p-6 w-full max-w-md">
|
|
5
5
|
<div id="mfaCode-label" class="mb-4 text-gray-700 dark:text-gray-100 text-center">
|
|
6
6
|
<p> {{ customDialogTitle }} </p>
|
|
7
7
|
<p>{{ $t('Please enter your authenticator code') }}</p>
|
|
8
8
|
</div>
|
|
9
|
-
|
|
10
|
-
<div class="
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
|
|
10
|
+
<div class="flex flex-col max-w-[calc(15rem_+_60px)]">
|
|
11
|
+
<div class="mb-4 w-full flex justify-center" ref="otpRoot">
|
|
12
|
+
<v-otp-input
|
|
13
|
+
ref="confirmationResult"
|
|
14
|
+
container-class="grid grid-cols-6 gap-3 w-full"
|
|
15
|
+
input-classes="bg-gray-50 text-center flex justify-center otp-input border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-10 h-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
16
|
+
:num-inputs="6"
|
|
17
|
+
inputType="number"
|
|
18
|
+
inputmode="numeric"
|
|
19
|
+
:should-auto-focus="true"
|
|
20
|
+
:should-focus-order="true"
|
|
21
|
+
v-model:value="bindValue"
|
|
22
|
+
@on-complete="handleOnComplete"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="flex justify-between items-center gap-32 w-full">
|
|
27
|
+
<p v-if="doesUserHavePasskeys===true" class="underline hover:no-underline text-lightPrimary whitespace-nowrap hover:cursor-pointer" @click="modalMode = 'passkey'" >{{$t('use passkey')}}</p>
|
|
28
|
+
<Button
|
|
29
|
+
class="px-4 py-2 rounded border"
|
|
30
|
+
@click="onCancel"
|
|
31
|
+
:disabled="inProgress"
|
|
32
|
+
>{{ $t('Cancel') }}</Button>
|
|
33
|
+
</div>
|
|
32
34
|
</div>
|
|
33
35
|
</div>
|
|
34
36
|
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
<Button @click="usePasskeyButtonClick" :disabled="isFetchingPasskey" :loader="isFetchingPasskey" class="w-full mx-16">
|
|
55
57
|
{{$t('Use passkey')}}
|
|
56
58
|
</Button>
|
|
57
|
-
<div v-if="modalMode === 'passkey'" class="max-w-sm px-6 pt-3 w-full bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700">
|
|
58
|
-
<div class="
|
|
59
|
+
<div v-if="modalMode === 'passkey'" class="af-2fa-passkey-issues-card max-w-sm px-6 pt-3 w-full bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700">
|
|
60
|
+
<div class="mb-3 font-normal text-gray-700 dark:text-gray-400">
|
|
59
61
|
<p>{{$t('Have issues with passkey?')}}</p>
|
|
60
62
|
<p class="underline hover:no-underline text-lightPrimary whitespace-nowrap hover:cursor-pointer" @click="modalMode = 'totp'" >{{$t('use TOTP')}}</p>
|
|
61
63
|
</div>
|
|
@@ -1,34 +1,36 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<div class="af-two-factors-modal fixed inset-0 z-[9999] flex items-center justify-center bg-black/50 top-0 bottom-0 left-0 right-0"
|
|
3
3
|
v-show ="modelShow && (isLoading === false)">
|
|
4
|
-
<div v-if="modalMode === 'totp'" class="af-two-factor-modal-totp relative bg-white dark:bg-gray-700 rounded-lg shadow p-6 w-full max-w-md">
|
|
4
|
+
<div v-if="modalMode === 'totp'" class="af-two-factor-modal-totp flex flex-col items-center relative bg-white dark:bg-gray-700 rounded-lg shadow p-6 w-full max-w-md">
|
|
5
5
|
<div id="mfaCode-label" class="mb-4 text-gray-700 dark:text-gray-100 text-center">
|
|
6
6
|
<p> {{ customDialogTitle }} </p>
|
|
7
7
|
<p>{{ $t('Please enter your authenticator code') }}</p>
|
|
8
8
|
</div>
|
|
9
|
-
|
|
10
|
-
<div class="
|
|
11
|
-
<
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
<
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
9
|
+
|
|
10
|
+
<div class="flex flex-col max-w-[calc(15rem_+_60px)]">
|
|
11
|
+
<div class="mb-4 w-full flex justify-center" ref="otpRoot">
|
|
12
|
+
<v-otp-input
|
|
13
|
+
ref="confirmationResult"
|
|
14
|
+
container-class="grid grid-cols-6 gap-3 w-full"
|
|
15
|
+
input-classes="bg-gray-50 text-center flex justify-center otp-input border leading-none border-gray-300 text-gray-900 text-sm rounded-lg focus:ring-blue-500 focus:border-blue-500 block w-10 h-10 dark:bg-gray-700 dark:border-gray-600 dark:placeholder-gray-400 dark:text-white dark:focus:ring-blue-500 dark:focus:border-blue-500"
|
|
16
|
+
:num-inputs="6"
|
|
17
|
+
inputType="number"
|
|
18
|
+
inputmode="numeric"
|
|
19
|
+
:should-auto-focus="true"
|
|
20
|
+
:should-focus-order="true"
|
|
21
|
+
v-model:value="bindValue"
|
|
22
|
+
@on-complete="handleOnComplete"
|
|
23
|
+
/>
|
|
24
|
+
</div>
|
|
25
|
+
|
|
26
|
+
<div class="flex justify-between items-center gap-32 w-full">
|
|
27
|
+
<p v-if="doesUserHavePasskeys===true" class="underline hover:no-underline text-lightPrimary whitespace-nowrap hover:cursor-pointer" @click="modalMode = 'passkey'" >{{$t('use passkey')}}</p>
|
|
28
|
+
<Button
|
|
29
|
+
class="px-4 py-2 rounded border"
|
|
30
|
+
@click="onCancel"
|
|
31
|
+
:disabled="inProgress"
|
|
32
|
+
>{{ $t('Cancel') }}</Button>
|
|
33
|
+
</div>
|
|
32
34
|
</div>
|
|
33
35
|
</div>
|
|
34
36
|
|
|
@@ -54,8 +56,8 @@
|
|
|
54
56
|
<Button @click="usePasskeyButtonClick" :disabled="isFetchingPasskey" :loader="isFetchingPasskey" class="w-full mx-16">
|
|
55
57
|
{{$t('Use passkey')}}
|
|
56
58
|
</Button>
|
|
57
|
-
<div v-if="modalMode === 'passkey'" class="max-w-sm px-6 pt-3 w-full bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700">
|
|
58
|
-
<div class="
|
|
59
|
+
<div v-if="modalMode === 'passkey'" class="af-2fa-passkey-issues-card max-w-sm px-6 pt-3 w-full bg-white border border-gray-200 rounded-lg shadow-sm dark:bg-gray-800 dark:border-gray-700">
|
|
60
|
+
<div class="mb-3 font-normal text-gray-700 dark:text-gray-400">
|
|
59
61
|
<p>{{$t('Have issues with passkey?')}}</p>
|
|
60
62
|
<p class="underline hover:no-underline text-lightPrimary whitespace-nowrap hover:cursor-pointer" @click="modalMode = 'totp'" >{{$t('use TOTP')}}</p>
|
|
61
63
|
</div>
|