@adminforth/two-factors-auth 1.11.0 → 1.11.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 CHANGED
@@ -13,5 +13,5 @@ custom/package.json
13
13
  custom/tsconfig.json
14
14
  custom/utils.js
15
15
 
16
- sent 68,334 bytes received 172 bytes 137,012.00 bytes/sec
17
- total size is 67,703 speedup is 0.99
16
+ sent 68,411 bytes received 172 bytes 137,166.00 bytes/sec
17
+ total size is 67,771 speedup is 0.99
@@ -272,7 +272,9 @@
272
272
  authenticatorAttachment.value = response.authenticatorAttachment;
273
273
  } catch (error) {
274
274
  console.error('Error fetching passkeys:', error);
275
- adminforth.alert({message: 'Error fetching passkeys.', variant: 'warning'});
275
+ if ( coreStore.adminUser.username ) {
276
+ adminforth.alert({message: 'Error fetching passkeys.', variant: 'warning'});
277
+ }
276
278
  }
277
279
  }
278
280
 
@@ -272,7 +272,9 @@
272
272
  authenticatorAttachment.value = response.authenticatorAttachment;
273
273
  } catch (error) {
274
274
  console.error('Error fetching passkeys:', error);
275
- adminforth.alert({message: 'Error fetching passkeys.', variant: 'warning'});
275
+ if ( coreStore.adminUser.username ) {
276
+ adminforth.alert({message: 'Error fetching passkeys.', variant: 'warning'});
277
+ }
276
278
  }
277
279
  }
278
280
 
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@adminforth/two-factors-auth",
3
- "version": "1.11.0",
3
+ "version": "1.11.2",
4
4
  "description": "AdminForth plugin for two factors authentication",
5
5
  "main": "dist/index.js",
6
6
  "types": "dist/index.d.ts",