@adminforth/two-factors-auth 2.5.3 → 2.5.5
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
CHANGED
|
@@ -15,5 +15,5 @@ custom/package.json
|
|
|
15
15
|
custom/tsconfig.json
|
|
16
16
|
custom/utils.js
|
|
17
17
|
|
|
18
|
-
sent 271,
|
|
19
|
-
total size is 270,
|
|
18
|
+
sent 271,363 bytes received 210 bytes 543,146.00 bytes/sec
|
|
19
|
+
total size is 270,529 speedup is 1.00
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div v-if="isLoading===false" id="authentication-modal" tabindex="-1" class="af-two-factors-confirmation overflow-y-auto overflow-x-hidden z-50 min-w-[00px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
|
12
12
|
<div class="relative p-4 w-full max-w-md max-h-full">
|
|
13
13
|
<!-- Modal content -->
|
|
14
|
-
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" :class="codeError ? 'rounded-b-none' : ''">
|
|
14
|
+
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" :class="codeError ? 'rounded-b-none' : ''">
|
|
15
15
|
<div class="p-8 w-full max-w-md max-h-full custom-auth-wrapper" >
|
|
16
16
|
<div v-if="confirmationMode === 'code'" class="af-totp-confirmation">
|
|
17
17
|
<div id="mfaCode-label" class="mx-4">{{$t('Please enter your authenticator code')}} </div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div id="authentication-modal" tabindex="-1" class="af-two-factors-setup overflow-y-auto overflow-x-hidden z-50 min-w-[00px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
|
12
12
|
<div class="relative p-4 w-full max-w-md max-h-full">
|
|
13
13
|
<!-- Modal content -->
|
|
14
|
-
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
|
|
14
|
+
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
|
|
15
15
|
<div class="p-10 w-full max-w-md max-h-full custom-auth-wrapper" >
|
|
16
16
|
<div>{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
|
|
17
17
|
<div class="flex justify-center m-3" >
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div v-if="isLoading===false" id="authentication-modal" tabindex="-1" class="af-two-factors-confirmation overflow-y-auto overflow-x-hidden z-50 min-w-[00px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
|
12
12
|
<div class="relative p-4 w-full max-w-md max-h-full">
|
|
13
13
|
<!-- Modal content -->
|
|
14
|
-
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" :class="codeError ? 'rounded-b-none' : ''">
|
|
14
|
+
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" :class="codeError ? 'rounded-b-none' : ''">
|
|
15
15
|
<div class="p-8 w-full max-w-md max-h-full custom-auth-wrapper" >
|
|
16
16
|
<div v-if="confirmationMode === 'code'" class="af-totp-confirmation">
|
|
17
17
|
<div id="mfaCode-label" class="mx-4">{{$t('Please enter your authenticator code')}} </div>
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
<div id="authentication-modal" tabindex="-1" class="af-two-factors-setup overflow-y-auto overflow-x-hidden z-50 min-w-[00px] justify-center items-center md:inset-0 h-[calc(100%-1rem)] max-h-full">
|
|
12
12
|
<div class="relative p-4 w-full max-w-md max-h-full">
|
|
13
13
|
<!-- Modal content -->
|
|
14
|
-
<div class="relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
|
|
14
|
+
<div class="af-login-popup relative bg-white rounded-lg shadow dark:bg-gray-700 dark:shadow-black text-gray-500" >
|
|
15
15
|
<div class="p-10 w-full max-w-md max-h-full custom-auth-wrapper" >
|
|
16
16
|
<div>{{$t('Scan this QR code with your authenticator app or open by')}} <a class="text-blue-600" :href="totpUri">{{$t('click')}}</a></div>
|
|
17
17
|
<div class="flex justify-center m-3" >
|
package/dist/index.js
CHANGED
|
@@ -418,7 +418,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
|
|
|
418
418
|
}
|
|
419
419
|
const passkeyRecord = yield this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
|
|
420
420
|
if (!passkeyRecord) {
|
|
421
|
-
return { error: '
|
|
421
|
+
return { error: 'No registered passkey found, probably it was removed' };
|
|
422
422
|
}
|
|
423
423
|
const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
|
|
424
424
|
if (!userPk) {
|
package/index.ts
CHANGED
|
@@ -460,7 +460,7 @@ export default class TwoFactorsAuthPlugin extends AdminForthPlugin {
|
|
|
460
460
|
|
|
461
461
|
const passkeyRecord = await this.adminforth.resource(this.options.passkeys.credentialResourceID).get([Filters.EQ(this.options.passkeys.credentialIdFieldName, credential_id)]);
|
|
462
462
|
if (!passkeyRecord) {
|
|
463
|
-
return { error: '
|
|
463
|
+
return { error: 'No registered passkey found, probably it was removed' };
|
|
464
464
|
}
|
|
465
465
|
|
|
466
466
|
const userPk = passkeyRecord[this.options.passkeys.credentialUserIdFieldName];
|