@strapi/plugin-users-permissions 4.2.0-alpha.1 → 4.2.0-alpha.5

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.
@@ -5,7 +5,6 @@ import { Table, Thead, Tbody, Tr, Td, Th } from '@strapi/design-system/Table';
5
5
  import { VisuallyHidden } from '@strapi/design-system/VisuallyHidden';
6
6
  import { Typography } from '@strapi/design-system/Typography';
7
7
  import { IconButton } from '@strapi/design-system/IconButton';
8
- import { Icon } from '@strapi/design-system/Icon';
9
8
  import Pencil from '@strapi/icons/Pencil';
10
9
  import Reload from '@strapi/icons/Refresh';
11
10
  import { onRowClick, stopPropagation } from '@strapi/helper-plugin';
@@ -48,14 +47,12 @@ const EmailTable = ({ canUpdate, onEditClick }) => {
48
47
  <Tbody>
49
48
  <Tr {...onRowClick({ fn: () => onEditClick('reset_password') })}>
50
49
  <Td>
51
- <Icon>
52
- <Reload
53
- aria-label={formatMessage({
54
- id: getTrad('Email.template.reset_password'),
55
- defaultMessage: 'Reset password',
56
- })}
57
- />
58
- </Icon>
50
+ <Reload
51
+ aria-label={formatMessage({
52
+ id: getTrad('Email.template.reset_password'),
53
+ defaultMessage: 'Reset password',
54
+ })}
55
+ />
59
56
  </Td>
60
57
  <Td>
61
58
  <Typography>
@@ -79,14 +76,12 @@ const EmailTable = ({ canUpdate, onEditClick }) => {
79
76
  </Tr>
80
77
  <Tr {...onRowClick({ fn: () => onEditClick('email_confirmation') })}>
81
78
  <Td>
82
- <Icon>
83
- <Check
84
- aria-label={formatMessage({
85
- id: getTrad('Email.template.email_confirmation'),
86
- defaultMessage: 'Email address confirmation',
87
- })}
88
- />
89
- </Icon>
79
+ <Check
80
+ aria-label={formatMessage({
81
+ id: getTrad('Email.template.email_confirmation'),
82
+ defaultMessage: 'Email address confirmation',
83
+ })}
84
+ />
90
85
  </Td>
91
86
  <Td>
92
87
  <Typography>
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-users-permissions",
3
- "version": "4.2.0-alpha.1",
3
+ "version": "4.2.0-alpha.5",
4
4
  "description": "Protect your API with a full-authentication process based on JWT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -28,8 +28,8 @@
28
28
  },
29
29
  "dependencies": {
30
30
  "@purest/providers": "^1.0.2",
31
- "@strapi/helper-plugin": "4.2.0-alpha.1",
32
- "@strapi/utils": "4.2.0-alpha.1",
31
+ "@strapi/helper-plugin": "4.2.0-alpha.5",
32
+ "@strapi/utils": "4.2.0-alpha.5",
33
33
  "bcryptjs": "2.4.3",
34
34
  "grant-koa": "5.4.8",
35
35
  "jsonwebtoken": "^8.1.0",
@@ -61,5 +61,5 @@
61
61
  "required": true,
62
62
  "kind": "plugin"
63
63
  },
64
- "gitHead": "3a3567a85026c7685bbd826eed690044f602d876"
64
+ "gitHead": "0095f4ec55ca381a4d1bb7d4fdfc105fa38f8fe7"
65
65
  }
@@ -137,7 +137,10 @@ module.exports = {
137
137
  throw new ValidationError('Incorrect code provided');
138
138
  }
139
139
 
140
- await getService('user').edit(user.id, { resetPasswordToken: null, password: params.password });
140
+ await getService('user').edit(user.id, {
141
+ resetPasswordToken: null,
142
+ password: params.password,
143
+ });
141
144
  // Update the user.
142
145
  ctx.send({
143
146
  jwt: getService('jwt').issue({ id: user.id }),
@@ -422,7 +425,7 @@ module.exports = {
422
425
  if (!user) {
423
426
  return ctx.send({
424
427
  email: params.email,
425
- sent: true
428
+ sent: true,
426
429
  });
427
430
  }
428
431