@adminforth/two-factors-auth 3.3.1 → 3.3.3
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
|
@@ -16,5 +16,5 @@ custom/pnpm-lock.yaml
|
|
|
16
16
|
custom/tsconfig.json
|
|
17
17
|
custom/utils.js
|
|
18
18
|
|
|
19
|
-
sent 285,
|
|
20
|
-
total size is 284,
|
|
19
|
+
sent 285,623 bytes received 229 bytes 571,704.00 bytes/sec
|
|
20
|
+
total size is 284,729 speedup is 1.00
|
package/custom/TwoFAModal.vue
CHANGED
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
} else if (!response.ok) {
|
|
179
179
|
alert({message: response.error || t('Verification failed'), variant: 'danger'});
|
|
180
180
|
} else if (response.ok) {
|
|
181
|
-
alert({message:
|
|
181
|
+
// alert({message: 'Verification successful', variant: 'success'});
|
|
182
182
|
}
|
|
183
183
|
sessionsIdsToResolve.value = [];
|
|
184
184
|
} catch (error) {
|
|
@@ -328,8 +328,8 @@
|
|
|
328
328
|
try {
|
|
329
329
|
options = PublicKeyCredential.parseRequestOptionsFromJSON(_options);
|
|
330
330
|
} catch (e) {
|
|
331
|
-
console.error(
|
|
332
|
-
adminforth.alert({message: t('Error initiating passkey authentication.'), variant: '
|
|
331
|
+
console.error('Error parsing request options:', e);
|
|
332
|
+
adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'danger'});
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
335
|
const credential = await authenticate(options);
|
|
@@ -361,8 +361,8 @@
|
|
|
361
361
|
if (response.ok === true) {
|
|
362
362
|
return { _options: response.data, challengeId: response.challengeId };
|
|
363
363
|
} else {
|
|
364
|
-
adminforth.alert({message: t('Error creating sign-in request.'), variant: '
|
|
365
|
-
codeError.value =
|
|
364
|
+
adminforth.alert({message: t('Error creating sign-in request.'), variant: 'danger'});
|
|
365
|
+
codeError.value = 'Error creating sign-in request.';
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
codeError.value = t('A previous passkey attempt was still pending. Please try again.');
|
|
401
401
|
return null;
|
|
402
402
|
} else if (name === 'NotAllowedError') {
|
|
403
|
-
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: '
|
|
403
|
+
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'danger' });
|
|
404
404
|
codeError.value = t('The operation either timed out or was not allowed.');
|
|
405
405
|
return null;
|
|
406
406
|
} else {
|
|
@@ -178,7 +178,7 @@
|
|
|
178
178
|
} else if (!response.ok) {
|
|
179
179
|
alert({message: response.error || t('Verification failed'), variant: 'danger'});
|
|
180
180
|
} else if (response.ok) {
|
|
181
|
-
alert({message:
|
|
181
|
+
// alert({message: 'Verification successful', variant: 'success'});
|
|
182
182
|
}
|
|
183
183
|
sessionsIdsToResolve.value = [];
|
|
184
184
|
} catch (error) {
|
|
@@ -328,8 +328,8 @@
|
|
|
328
328
|
try {
|
|
329
329
|
options = PublicKeyCredential.parseRequestOptionsFromJSON(_options);
|
|
330
330
|
} catch (e) {
|
|
331
|
-
console.error(
|
|
332
|
-
adminforth.alert({message: t('Error initiating passkey authentication.'), variant: '
|
|
331
|
+
console.error('Error parsing request options:', e);
|
|
332
|
+
adminforth.alert({message: t('Error initiating passkey authentication.'), variant: 'danger'});
|
|
333
333
|
return;
|
|
334
334
|
}
|
|
335
335
|
const credential = await authenticate(options);
|
|
@@ -361,8 +361,8 @@
|
|
|
361
361
|
if (response.ok === true) {
|
|
362
362
|
return { _options: response.data, challengeId: response.challengeId };
|
|
363
363
|
} else {
|
|
364
|
-
adminforth.alert({message: t('Error creating sign-in request.'), variant: '
|
|
365
|
-
codeError.value =
|
|
364
|
+
adminforth.alert({message: t('Error creating sign-in request.'), variant: 'danger'});
|
|
365
|
+
codeError.value = 'Error creating sign-in request.';
|
|
366
366
|
}
|
|
367
367
|
}
|
|
368
368
|
|
|
@@ -400,7 +400,7 @@
|
|
|
400
400
|
codeError.value = t('A previous passkey attempt was still pending. Please try again.');
|
|
401
401
|
return null;
|
|
402
402
|
} else if (name === 'NotAllowedError') {
|
|
403
|
-
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: '
|
|
403
|
+
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'danger' });
|
|
404
404
|
codeError.value = t('The operation either timed out or was not allowed.');
|
|
405
405
|
return null;
|
|
406
406
|
} else {
|