@strapi/plugin-users-permissions 4.0.0 → 4.0.1

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.
@@ -4,15 +4,14 @@ import { translatedErrors } from '@strapi/helper-plugin';
4
4
  const URL_REGEX = new RegExp('(^$)|((https?://.*)(d*)/?(.*))');
5
5
 
6
6
  const schema = yup.object().shape({
7
- email_confirmation_redirection: yup
8
- .string(translatedErrors.string)
9
- .matches(URL_REGEX, translatedErrors.regex)
10
- .nullable()
11
- .when('email_confirmation', {
12
- is: true,
13
- then: yup.string().required(translatedErrors.required),
14
- otherwise: yup.string(),
15
- }),
7
+ email_confirmation_redirection: yup.mixed().when('email_confirmation', {
8
+ is: true,
9
+ then: yup
10
+ .string()
11
+ .matches(URL_REGEX)
12
+ .required(),
13
+ otherwise: yup.string().nullable(),
14
+ }),
16
15
  email_reset_password: yup
17
16
  .string(translatedErrors.string)
18
17
  .matches(URL_REGEX, translatedErrors.regex)
@@ -109,7 +109,7 @@ const EditPage = () => {
109
109
  <Link startIcon={<ArrowLeft />} to="/settings/users-permissions/roles">
110
110
  {formatMessage({
111
111
  id: 'app.components.go-back',
112
- defaultMessage: 'Go back',
112
+ defaultMessage: 'Back',
113
113
  })}
114
114
  </Link>
115
115
  }
@@ -1,47 +1,94 @@
1
1
  {
2
- "BoundRoute.title": "라우트(bound route)",
3
- "EditForm.inputSelect.description.role": "인증된 사용자에 선택한 역할(role)을 부여합니다.",
4
- "EditForm.inputSelect.label.role": "인증된 사용자의 기본 역할(role)",
5
- "EditForm.inputToggle.description.email": "사용자가 동일한 이메일 주소를 사용해 여러 계정을 만들지 못하게 합니다.",
6
- "EditForm.inputToggle.description.email-confirmation": "(ON)이 활성화되면, 새로 가입하는 사용자는 인증 메일을 받게됩니다.",
7
- "EditForm.inputToggle.description.email-confirmation-redirection": "이메일 인증완료 후 리다이렉트 될 주소",
8
- "EditForm.inputToggle.description.email-reset-password": "애플리케이션의 비밀번호 재설정 URL 페이지",
9
- "EditForm.inputToggle.description.sign-up": "비활성(OFF)일 경우, 등록 프로세스를 금지합니다. 사용하는 프로바이더(provider)에 관계 없이 누구도 가입할 수 없습니다.",
10
- "EditForm.inputToggle.label.email": "이메일 주소 당 하나의 계정",
11
- "EditForm.inputToggle.label.email-confirmation": "이메일 인증 활성화",
12
- "EditForm.inputToggle.label.email-confirmation-redirection": "리다이렉션 url",
13
- "EditForm.inputToggle.label.email-reset-password": "패스워드 재설정 페이지",
14
- "EditForm.inputToggle.label.sign-up": "사용자 등록",
15
- "HeaderNav.link.advancedSettings": "고급 설정",
16
- "HeaderNav.link.emailTemplates": "이메일 템플릿",
17
- "HeaderNav.link.providers": "프로바이더(Providers)",
18
- "HeaderNav.link.roles": "역할(Roles) & 권한(Permissions)",
19
- "Plugin.permissions.plugins.description": "{name} 플러그인에서 허용할 액션을 설정합니다.",
20
- "Plugins.header.description": "라우트(route)에 연결된 액션만 표시됩니다.",
21
- "Plugins.header.title": "권한(Permissions)",
22
- "Policies.header.hint": "애플리케이션 또는 플러그인을 선택하고 항목을 클릭하면 바인딩 된 경로를 표시할 수 있습니다.",
23
- "Policies.header.title": "고급 설정",
24
- "PopUpForm.Email.email_templates.inputDescription": "이메일 템플릿 문법은 이 {link}를 확인하세요.",
25
- "PopUpForm.Email.options.from.email.label": "보내는 이메일",
26
- "PopUpForm.Email.options.from.email.placeholder": "kai@doe.com",
27
- "PopUpForm.Email.options.from.name.label": "보내는 사람",
28
- "PopUpForm.Email.options.from.name.placeholder": "Kai Doe",
29
- "PopUpForm.Email.options.message.label": "내용",
30
- "PopUpForm.Email.options.object.label": "제목",
31
- "PopUpForm.Email.options.response_email.label": "응답받을 이메일",
32
- "PopUpForm.Email.options.response_email.placeholder": "kai@doe.com",
33
- "PopUpForm.Providers.enabled.description": "사용하지 않을 경우 이 프로바이더(provider) 기능을 이용할 수 없습니다.",
34
- "PopUpForm.Providers.enabled.label": "사용",
35
- "PopUpForm.Providers.key.label": "클라이언트 ID(Client ID)",
36
- "PopUpForm.Providers.key.placeholder": "텍스트",
37
- "PopUpForm.Providers.redirectURL.front-end.label": "프론트엔드 애플리케이션 리다이렉트 URL",
38
- "PopUpForm.Providers.secret.label": "클라이언트 시크릿(Client Secret)",
39
- "PopUpForm.Providers.secret.placeholder": "텍스트",
40
- "PopUpForm.Providers.subdomain.label": "Host URI (Subdomain)",
41
- "PopUpForm.Providers.subdomain.placeholder": "my.subdomain.com",
42
- "PopUpForm.header.edit.email-templates": "이메일 템플릿 수정",
43
- "notification.success.submit": "설정을 업데이트했습니다.",
44
- "plugin.description.long": "JWT 기반의 인증 프로세스로 API를 보호하세요. 이 플러그인에서 사용자 그룹간 권한을 관리할 수 있는 ACL 전략도 설정할 수 있습니다.",
45
- "plugin.description.short": "JWT 기반의 인증 프로세스로 API를 보호하세요.",
46
- "plugin.name": "역할(roles) & 권한(permissions)"
47
- }
2
+ "BoundRoute.title": "라우트(bound route)",
3
+ "EditForm.inputSelect.description.role": "인증된 사용자에 선택한 역할(role)을 부여합니다.",
4
+ "EditForm.inputSelect.label.role": "인증된 사용자의 기본 역할(role)",
5
+ "EditForm.inputToggle.description.email": "사용자가 동일한 이메일 주소를 사용해 여러 계정을 만들지 못하게 합니다.",
6
+ "EditForm.inputToggle.description.email-confirmation": "(ON)이 활성화되면, 새로 가입하는 사용자는 인증 메일을 받게됩니다.",
7
+ "EditForm.inputToggle.description.email-confirmation-redirection": "이메일 인증완료 후 리다이렉트 될 주소",
8
+ "EditForm.inputToggle.description.email-reset-password": "애플리케이션의 비밀번호 재설정 URL 페이지",
9
+ "EditForm.inputToggle.description.sign-up": "비활성(OFF)일 경우, 등록 프로세스를 금지합니다. 사용하는 프로바이더(provider)에 관계 없이 누구도 가입할 수 없습니다.",
10
+ "EditForm.inputToggle.label.email": "이메일 주소 당 하나의 계정",
11
+ "EditForm.inputToggle.label.email-confirmation": "이메일 인증 활성화",
12
+ "EditForm.inputToggle.label.email-confirmation-redirection": "리다이렉션 url",
13
+ "EditForm.inputToggle.label.email-reset-password": "패스워드 재설정 페이지",
14
+ "EditForm.inputToggle.label.sign-up": "사용자 등록",
15
+ "EditForm.inputToggle.placeholder.email-confirmation-redirection": "예: https://yourfrontend.com/reset-password",
16
+ "EditForm.inputToggle.placeholder.email-reset-password": "예: https://yourfrontend.com/reset-password",
17
+ "EditPage.form.roles": "역할 상세정보",
18
+ "Email.template.data.loaded": "이메일 템플릿을 불러왔습니다.",
19
+ "Email.template.email_confirmation": "이메일 주소 확인",
20
+ "Email.template.form.edit.label": "템플릿 수정",
21
+ "Email.template.reset_password": "비밀번호 재설정",
22
+ "Email.template.table.action.label": "action",
23
+ "Email.template.table.icon.label": "icon",
24
+ "Email.template.table.name.label": "name",
25
+ "Form.advancedSettings.data.loaded": "고급 설정 정보를 불러왔습니다.",
26
+ "Form.save": "저장",
27
+ "Form.title.advancedSettings": "설정",
28
+ "HeaderNav.link.advancedSettings": "고급 설정",
29
+ "HeaderNav.link.emailTemplates": "이메일 템플릿",
30
+ "HeaderNav.link.providers": "프로바이더(Providers)",
31
+ "HeaderNav.link.roles": "역할(Roles) & 권한(Permissions)",
32
+ "Plugin.permissions.plugins.description": "{name} 플러그인에서 허용할 액션을 설정합니다.",
33
+ "Plugins.header.description": "라우트(route) 연결된 액션만 표시됩니다.",
34
+ "Plugins.header.title": "권한(Permissions)",
35
+ "Policies.header.hint": "애플리케이션 또는 플러그인을 선택하고 항목을 클릭하면 바인딩 된 경로를 표시할 수 있습니다.",
36
+ "Policies.header.title": "고급 설정",
37
+ "PopUpForm.Email.email_templates.inputDescription": "이메일 템플릿 문법은 이 {link}를 확인하세요.",
38
+ "PopUpForm.Email.link.documentation": "check out our documentation.",
39
+ "PopUpForm.Email.options.from.email.label": "보내는 이메일",
40
+ "PopUpForm.Email.options.from.email.placeholder": "kai@doe.com",
41
+ "PopUpForm.Email.options.from.name.label": "보내는 사람",
42
+ "PopUpForm.Email.options.from.name.placeholder": "Kai Doe",
43
+ "PopUpForm.Email.options.message.label": "내용",
44
+ "PopUpForm.Email.options.object.label": "제목",
45
+ "PopUpForm.Email.options.object.placeholder": "Please confirm your email address for %APP_NAME%",
46
+ "PopUpForm.Email.options.response_email.label": "응답받을 이메일",
47
+ "PopUpForm.Email.options.response_email.placeholder": "kai@doe.com",
48
+ "PopUpForm.Providers.enabled.description": "사용하지 않을 경우 이 프로바이더(provider) 기능을 이용할 수 없습니다.",
49
+ "PopUpForm.Providers.enabled.label": "사용",
50
+ "PopUpForm.Providers.key.label": "클라이언트 ID(Client ID)",
51
+ "PopUpForm.Providers.key.placeholder": "텍스트",
52
+ "PopUpForm.Providers.redirectURL.front-end.label": "프론트엔드 애플리케이션 리다이렉트 URL",
53
+ "PopUpForm.Providers.redirectURL.label": "{provider} 애플리케이션 구성에 추가할 리디렉션 URL",
54
+ "PopUpForm.Providers.secret.label": "클라이언트 시크릿(Client Secret)",
55
+ "PopUpForm.Providers.secret.placeholder": "텍스트",
56
+ "PopUpForm.Providers.subdomain.label": "Host URI (Subdomain)",
57
+ "PopUpForm.Providers.subdomain.placeholder": "my.subdomain.com",
58
+ "PopUpForm.header.edit.email-templates": "이메일 템플릿 수정",
59
+ "PopUpForm.header.edit.providers": "프로바이더 수정",
60
+ "Providers.data.loaded": "프로바이더를 불러왔습니다.",
61
+ "Providers.disabled": "사용 안함",
62
+ "Providers.enabled": "사용중",
63
+ "Providers.image": "이미지",
64
+ "Providers.name": "이름",
65
+ "Providers.settings": "설정",
66
+ "Providers.status": "상태",
67
+ "Roles.description": "설명",
68
+ "Roles.empty": "아직 역할이 없습니다.",
69
+ "Roles.empty.search": "검색과 일치하는 역할이 없습니다.",
70
+ "Roles.name": "이름",
71
+ "Roles.users": "사용자",
72
+ "Settings.roles.deleted": "Role deleted",
73
+ "Settings.roles.edited": "Role edited",
74
+ "Settings.section-label": "사용자 & 권한 플러그인",
75
+ "components.Input.error.validation.email": "유효하지 않은 이메일입니다.",
76
+ "components.Input.error.validation.json": "JSON 형식과 일치하지 않습니다.",
77
+ "components.Input.error.validation.max": "값이 너무 큽니다.",
78
+ "components.Input.error.validation.maxLength": "값이 너무 깁니다.",
79
+ "components.Input.error.validation.min": "값이 너무 작습니다.",
80
+ "components.Input.error.validation.minLength": "값이 너무 짧습니다.",
81
+ "components.Input.error.validation.minSupMax": "이보다 클 수 없습니다.",
82
+ "components.Input.error.validation.regex": "값이 정규식과 일치하지 않습니다.",
83
+ "components.Input.error.validation.required": "필수 항목입니다.",
84
+ "components.Input.error.validation.unique": "이 값은 이미 사용되고 있습니다.",
85
+ "notification.success.submit": "설정을 업데이트했습니다.",
86
+ "page.title": "설정 - 역할",
87
+ "plugin.description.long": "JWT 기반의 인증 프로세스로 API를 보호하세요. 이 플러그인에서 사용자 그룹간 권한을 관리할 수 있는 ACL 전략도 설정할 수 있습니다.",
88
+ "plugin.description.short": "JWT 기반의 인증 프로세스로 API를 보호하세요.",
89
+ "plugin.name": "역할(roles) & 권한(permissions)",
90
+ "popUpWarning.button.cancel": "취소",
91
+ "popUpWarning.button.confirm": "확인",
92
+ "popUpWarning.title": "Please confirm",
93
+ "popUpWarning.warning.cancel": "수정 사항을 취소하시겠습니까?"
94
+ }
@@ -0,0 +1,10 @@
1
+ 'use strict';
2
+
3
+ const baseConfig = require('../../../jest.base-config.front');
4
+ const pkg = require('./package');
5
+
6
+ module.exports = {
7
+ ...baseConfig,
8
+ displayName: (pkg.strapi && pkg.strapi.name) || pkg.name,
9
+ roots: [__dirname],
10
+ };
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@strapi/plugin-users-permissions",
3
- "version": "4.0.0",
3
+ "version": "4.0.1",
4
4
  "description": "Protect your API with a full-authentication process based on JWT",
5
5
  "repository": {
6
6
  "type": "git",
@@ -20,12 +20,16 @@
20
20
  }
21
21
  ],
22
22
  "scripts": {
23
- "test": "echo \"no tests yet\""
23
+ "test:unit": "jest --verbose",
24
+ "test:front": "cross-env IS_EE=true jest --config ./jest.config.front.js",
25
+ "test:front:watch": "cross-env IS_EE=true jest --config ./jest.config.front.js --watchAll",
26
+ "test:front:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js",
27
+ "test:front:watch:ce": "cross-env IS_EE=false jest --config ./jest.config.front.js --watchAll"
24
28
  },
25
29
  "dependencies": {
26
30
  "@purest/providers": "^1.0.2",
27
- "@strapi/helper-plugin": "4.0.0",
28
- "@strapi/utils": "4.0.0",
31
+ "@strapi/helper-plugin": "4.0.1",
32
+ "@strapi/utils": "4.0.1",
29
33
  "bcryptjs": "2.4.3",
30
34
  "grant-koa": "5.4.8",
31
35
  "jsonwebtoken": "^8.1.0",
@@ -57,5 +61,5 @@
57
61
  "required": true,
58
62
  "kind": "plugin"
59
63
  },
60
- "gitHead": "b181702f0202b2c6d645d42b195a831f25cd0b03"
64
+ "gitHead": "e2cd01e8c6cbfeba15ad7787e38b6eebcbb92221"
61
65
  }
@@ -134,7 +134,7 @@ module.exports = {
134
134
  * @return {Object|Array}
135
135
  */
136
136
  async find(ctx, next, { populate } = {}) {
137
- const users = await getService('user').fetchAll(ctx.query, populate);
137
+ const users = await getService('user').fetchAll(ctx.query.filters, populate);
138
138
 
139
139
  ctx.body = await Promise.all(users.map(user => sanitizeOutput(user, ctx)));
140
140
  },
@@ -26,7 +26,7 @@ module.exports = ({ nexus, strapi }) => {
26
26
  await strapi
27
27
  .plugin('users-permissions')
28
28
  .controller('auth')
29
- .forgotPassword(koaContext);
29
+ .resetPassword(koaContext);
30
30
 
31
31
  const output = koaContext.body;
32
32