@adminforth/two-factors-auth 2.7.2 → 2.7.4
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 272,
|
|
19
|
-
total size is
|
|
18
|
+
sent 272,033 bytes received 210 bytes 544,486.00 bytes/sec
|
|
19
|
+
total size is 271,206 speedup is 1.00
|
package/custom/TwoFAModal.vue
CHANGED
|
@@ -158,24 +158,8 @@
|
|
|
158
158
|
try {
|
|
159
159
|
passkeyData = await getPasskey();
|
|
160
160
|
} catch (error) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (name === 'AbortError') {
|
|
164
|
-
// Aborted intentionally; no user-facing error needed
|
|
165
|
-
return null;
|
|
166
|
-
} else if (name === 'InvalidStateError' || name === 'OperationError' || /pending/i.test(message)) {
|
|
167
|
-
adminforth.alert({ message: t('Another security prompt is already open. Please try again.'), variant: 'warning' });
|
|
168
|
-
onCancel();
|
|
169
|
-
return null;
|
|
170
|
-
} else if (name === 'NotAllowedError') {
|
|
171
|
-
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'warning' });
|
|
172
|
-
onCancel();
|
|
173
|
-
return null;
|
|
174
|
-
} else {
|
|
175
|
-
adminforth.alert({message: t(`Error during authentication: ${error}`), variant: 'warning'});
|
|
176
|
-
onCancel();
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
161
|
+
onCancel();
|
|
162
|
+
return null;
|
|
179
163
|
}
|
|
180
164
|
modelShow.value = false;
|
|
181
165
|
const dataToReturn = {
|
|
@@ -285,7 +285,7 @@ const handleSkip = async () => {
|
|
|
285
285
|
});
|
|
286
286
|
if (resp.allowedLogin){
|
|
287
287
|
if ( route.meta.isPasskeysEnabled ) {
|
|
288
|
-
handlePasskeyAlert();
|
|
288
|
+
handlePasskeyAlert(route.meta.suggestionPeriod, router);
|
|
289
289
|
}
|
|
290
290
|
await user.finishLogin();
|
|
291
291
|
} else if (resp.error) {
|
|
@@ -158,24 +158,8 @@
|
|
|
158
158
|
try {
|
|
159
159
|
passkeyData = await getPasskey();
|
|
160
160
|
} catch (error) {
|
|
161
|
-
|
|
162
|
-
|
|
163
|
-
if (name === 'AbortError') {
|
|
164
|
-
// Aborted intentionally; no user-facing error needed
|
|
165
|
-
return null;
|
|
166
|
-
} else if (name === 'InvalidStateError' || name === 'OperationError' || /pending/i.test(message)) {
|
|
167
|
-
adminforth.alert({ message: t('Another security prompt is already open. Please try again.'), variant: 'warning' });
|
|
168
|
-
onCancel();
|
|
169
|
-
return null;
|
|
170
|
-
} else if (name === 'NotAllowedError') {
|
|
171
|
-
adminforth.alert({ message: t('The operation either timed out or was not allowed'), variant: 'warning' });
|
|
172
|
-
onCancel();
|
|
173
|
-
return null;
|
|
174
|
-
} else {
|
|
175
|
-
adminforth.alert({message: t(`Error during authentication: ${error}`), variant: 'warning'});
|
|
176
|
-
onCancel();
|
|
177
|
-
return null;
|
|
178
|
-
}
|
|
161
|
+
onCancel();
|
|
162
|
+
return null;
|
|
179
163
|
}
|
|
180
164
|
modelShow.value = false;
|
|
181
165
|
const dataToReturn = {
|
|
@@ -285,7 +285,7 @@ const handleSkip = async () => {
|
|
|
285
285
|
});
|
|
286
286
|
if (resp.allowedLogin){
|
|
287
287
|
if ( route.meta.isPasskeysEnabled ) {
|
|
288
|
-
handlePasskeyAlert();
|
|
288
|
+
handlePasskeyAlert(route.meta.suggestionPeriod, router);
|
|
289
289
|
}
|
|
290
290
|
await user.finishLogin();
|
|
291
291
|
} else if (resp.error) {
|