@strapi/plugin-users-permissions 4.25.8 → 4.25.10

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.
Files changed (24) hide show
  1. package/dist/_chunks/{index-o5xhzWZI.mjs → index--NjZI15Z.mjs} +2 -2
  2. package/dist/_chunks/{index-o5xhzWZI.mjs.map → index--NjZI15Z.mjs.map} +1 -1
  3. package/dist/_chunks/{index-ufGF2RTo.mjs → index-EFtzpYTe.mjs} +2 -2
  4. package/dist/_chunks/{index-ufGF2RTo.mjs.map → index-EFtzpYTe.mjs.map} +1 -1
  5. package/dist/_chunks/{index-5cv9mHeN.mjs → index-M6VUX9Xe.mjs} +9 -9
  6. package/dist/_chunks/{index-5cv9mHeN.mjs.map → index-M6VUX9Xe.mjs.map} +1 -1
  7. package/dist/_chunks/{index-v8v3wo7Z.js → index-PIkWT4fR.js} +2 -2
  8. package/dist/_chunks/{index-v8v3wo7Z.js.map → index-PIkWT4fR.js.map} +1 -1
  9. package/dist/_chunks/{index-hFFwdH_V.mjs → index-RINRWbs5.mjs} +2 -2
  10. package/dist/_chunks/{index-hFFwdH_V.mjs.map → index-RINRWbs5.mjs.map} +1 -1
  11. package/dist/_chunks/{index-jHUByNOa.mjs → index-V3CiTkmR.mjs} +2 -2
  12. package/dist/_chunks/{index-jHUByNOa.mjs.map → index-V3CiTkmR.mjs.map} +1 -1
  13. package/dist/_chunks/{index-MPlK7WPw.js → index-d2k7RBd6.js} +2 -2
  14. package/dist/_chunks/{index-MPlK7WPw.js.map → index-d2k7RBd6.js.map} +1 -1
  15. package/dist/_chunks/{index-t1eMJl0K.js → index-f7pS9YU1.js} +9 -9
  16. package/dist/_chunks/{index-t1eMJl0K.js.map → index-f7pS9YU1.js.map} +1 -1
  17. package/dist/_chunks/{index-4RynHpkp.js → index-j8_HHqx2.js} +2 -2
  18. package/dist/_chunks/{index-4RynHpkp.js.map → index-j8_HHqx2.js.map} +1 -1
  19. package/dist/_chunks/{index-Y1M2mzQY.js → index-zhL5rDjK.js} +2 -2
  20. package/dist/_chunks/{index-Y1M2mzQY.js.map → index-zhL5rDjK.js.map} +1 -1
  21. package/dist/admin/index.js +1 -1
  22. package/dist/admin/index.mjs +1 -1
  23. package/package.json +5 -5
  24. package/server/services/providers-registry.js +5 -2
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-users-permissions",
3
- "version": "4.25.8",
3
+ "version": "4.25.10",
4
4
  "description": "Protect your API with a full-authentication process based on JWT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -47,9 +47,9 @@
47
47
  },
48
48
  "dependencies": {
49
49
  "@strapi/design-system": "1.19.0",
50
- "@strapi/helper-plugin": "4.25.8",
50
+ "@strapi/helper-plugin": "4.25.10",
51
51
  "@strapi/icons": "1.19.0",
52
- "@strapi/utils": "4.25.8",
52
+ "@strapi/utils": "4.25.10",
53
53
  "bcryptjs": "2.4.3",
54
54
  "formik": "2.4.0",
55
55
  "grant-koa": "5.4.8",
@@ -69,7 +69,7 @@
69
69
  },
70
70
  "devDependencies": {
71
71
  "@strapi/pack-up": "4.23.0",
72
- "@strapi/strapi": "4.25.8",
72
+ "@strapi/strapi": "4.25.10",
73
73
  "@testing-library/dom": "9.2.0",
74
74
  "@testing-library/react": "14.0.0",
75
75
  "@testing-library/user-event": "14.4.3",
@@ -97,5 +97,5 @@
97
97
  "required": true,
98
98
  "kind": "plugin"
99
99
  },
100
- "gitHead": "b10e4f71861620ae50ad867f24e61b2c1f46fc39"
100
+ "gitHead": "6119f358da4ddaa07bc628b3bc9d7db625449106"
101
101
  }
@@ -54,8 +54,11 @@ const getInitialProviders = ({ purest }) => ({
54
54
  .auth(accessToken)
55
55
  .request()
56
56
  .then(({ body }) => {
57
- // Combine username and discriminator because discord username is not unique
58
- const username = `${body.username}#${body.discriminator}`;
57
+ // Combine username and discriminator (if discriminator exists and not equal to 0)
58
+ const username =
59
+ body.discriminator && body.discriminator !== '0'
60
+ ? `${body.username}#${body.discriminator}`
61
+ : body.username;
59
62
  return {
60
63
  username,
61
64
  email: body.email,