@strapi/plugin-users-permissions 4.1.10 → 4.1.11
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/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@strapi/plugin-users-permissions",
|
|
3
|
-
"version": "4.1.
|
|
3
|
+
"version": "4.1.11",
|
|
4
4
|
"description": "Protect your API with a full-authentication process based on JWT",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -27,8 +27,8 @@
|
|
|
27
27
|
"test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
|
|
28
28
|
},
|
|
29
29
|
"dependencies": {
|
|
30
|
-
"@strapi/helper-plugin": "4.1.
|
|
31
|
-
"@strapi/utils": "4.1.
|
|
30
|
+
"@strapi/helper-plugin": "4.1.11",
|
|
31
|
+
"@strapi/utils": "4.1.11",
|
|
32
32
|
"bcryptjs": "2.4.3",
|
|
33
33
|
"grant-koa": "5.4.8",
|
|
34
34
|
"jsonwebtoken": "^8.1.0",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"required": true,
|
|
60
60
|
"kind": "plugin"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "698ae33e0007811ce24b568cc5d873d7a4d2a832"
|
|
63
63
|
}
|
|
@@ -378,7 +378,7 @@ module.exports = {
|
|
|
378
378
|
throw new ValidationError('token.invalid');
|
|
379
379
|
}
|
|
380
380
|
|
|
381
|
-
const user = await userService.
|
|
381
|
+
const [user] = await userService.fetchAll({ filters: { confirmationToken }});
|
|
382
382
|
|
|
383
383
|
if (!user) {
|
|
384
384
|
throw new ValidationError('token.invalid');
|