@everymatrix/pam-change-password 1.74.7 → 1.74.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 (23) hide show
  1. package/dist/cjs/checkbox-group-input_15.cjs.entry.js +622 -200
  2. package/dist/cjs/index.cjs.js +1 -1
  3. package/dist/cjs/{pam-change-password-0c00e05e.js → pam-change-password-5b60dadc.js} +92 -16
  4. package/dist/collection/components/pam-change-password/pam-change-password.js +28 -8
  5. package/dist/collection/utils/locale.utils.js +64 -8
  6. package/dist/esm/checkbox-group-input_15.entry.js +622 -200
  7. package/dist/esm/index.js +1 -1
  8. package/dist/esm/{pam-change-password-0b043d09.js → pam-change-password-af5033a0.js} +92 -16
  9. package/dist/pam-change-password/checkbox-group-input_15.entry.js +641 -209
  10. package/dist/pam-change-password/index.esm.js +1 -1
  11. package/dist/pam-change-password/pam-change-password-af5033a0.js +1 -0
  12. package/dist/types/components/pam-change-password/pam-change-password.d.ts +1 -1
  13. package/package.json +1 -1
  14. package/dist/pam-change-password/pam-change-password-0b043d09.js +0 -1
  15. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/libs/common/src/storybook/storybook-utils.d.ts +0 -0
  16. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/stencil.config.d.ts +0 -0
  17. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/stencil.config.dev.d.ts +0 -0
  18. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/storybook/main.d.ts +0 -0
  19. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/packages/stencil/pam-change-password/storybook/preview.d.ts +0 -0
  20. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/index.d.ts +0 -0
  21. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/stencil-clean-deps-plugin.d.ts +0 -0
  22. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/vite-chunk-plugin.d.ts +0 -0
  23. /package/dist/types/Users/{maria.bumbar/Desktop/Widgets & Template → sebastian.strulea/Documents/work}/widgets-monorepo/packages/stencil/pam-change-password/.stencil/tools/plugins/vite-clean-deps-plugin.d.ts +0 -0
@@ -2,7 +2,7 @@
2
2
 
3
3
  Object.defineProperty(exports, '__esModule', { value: true });
4
4
 
5
- const pamChangePassword = require('./pam-change-password-0c00e05e.js');
5
+ const pamChangePassword = require('./pam-change-password-5b60dadc.js');
6
6
  require('./index-719211a0.js');
7
7
 
8
8
 
@@ -16,7 +16,14 @@ const TRANSLATIONS = {
16
16
  "successMsg": "Password changed successfully",
17
17
  "errorMsgGeneric": "There was an error when attempting to change your password",
18
18
  "gm.pms.password_not_verified_unauthorized": "The current password you have entered is incorrect",
19
- "gm.pms.password_policy_failed": "Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."
19
+ "gm.pms.password_policy_failed": "Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change.",
20
+ "passwordContainsFirstName": "Password should not contain your first name.",
21
+ "passwordContainsLastName": "Password should not contain your last name.",
22
+ "passwordContainsUsername": "Password should not contain your username.",
23
+ "passwordContainsEmail": "Password should not contain your email.",
24
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
25
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
26
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
20
27
  },
21
28
  "fr": {
22
29
  "title": "Changer le mot de passe",
@@ -30,7 +37,14 @@ const TRANSLATIONS = {
30
37
  "successMsg": "Mot de passe changé avec succès",
31
38
  "errorMsgGeneric": "Une erreur est survenue lors de la tentative de changement de mot de passe",
32
39
  "gm.pms.password_not_verified_unauthorized": "Le mot de passe actuel que vous avez entré est incorrect",
33
- "gm.pms.password_policy_failed": "Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."
40
+ "gm.pms.password_policy_failed": "Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement.",
41
+ "passwordContainsFirstName": "Password should not contain your first name.",
42
+ "passwordContainsLastName": "Password should not contain your last name.",
43
+ "passwordContainsUsername": "Password should not contain your username.",
44
+ "passwordContainsEmail": "Password should not contain your email.",
45
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
46
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
47
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
34
48
  },
35
49
  "ro": {
36
50
  "title": "Schimbă Parola",
@@ -44,7 +58,14 @@ const TRANSLATIONS = {
44
58
  "successMsg": "Parola a fost schimbată cu succes",
45
59
  "errorMsgGeneric": "A apărut o eroare la încercarea de schimbare a parolei",
46
60
  "gm.pms.password_not_verified_unauthorized": "Parola curentă introdusă este incorectă",
47
- "gm.pms.password_policy_failed": "Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."
61
+ "gm.pms.password_policy_failed": "Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare.",
62
+ "passwordContainsFirstName": "Password should not contain your first name.",
63
+ "passwordContainsLastName": "Password should not contain your last name.",
64
+ "passwordContainsUsername": "Password should not contain your username.",
65
+ "passwordContainsEmail": "Password should not contain your email.",
66
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
67
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
68
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
48
69
  },
49
70
  "es": {
50
71
  "title": "Cambiar Contraseña",
@@ -58,7 +79,14 @@ const TRANSLATIONS = {
58
79
  "successMsg": "Contraseña cambiada con éxito",
59
80
  "errorMsgGeneric": "Hubo un error al intentar cambiar tu contraseña",
60
81
  "gm.pms.password_not_verified_unauthorized": "La contraseña actual que has introducido es incorrecta",
61
- "gm.pms.password_policy_failed": "La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."
82
+ "gm.pms.password_policy_failed": "La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio.",
83
+ "passwordContainsFirstName": "Password should not contain your first name.",
84
+ "passwordContainsLastName": "Password should not contain your last name.",
85
+ "passwordContainsUsername": "Password should not contain your username.",
86
+ "passwordContainsEmail": "Password should not contain your email.",
87
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
88
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
89
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
62
90
  },
63
91
  "pt": {
64
92
  "title": "Alterar Senha",
@@ -72,7 +100,14 @@ const TRANSLATIONS = {
72
100
  "successMsg": "Senha alterada com sucesso",
73
101
  "errorMsgGeneric": "Ocorreu um erro ao tentar alterar sua senha",
74
102
  "gm.pms.password_not_verified_unauthorized": "A senha atual que você inseriu está incorreta",
75
- "gm.pms.password_policy_failed": "A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."
103
+ "gm.pms.password_policy_failed": "A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração.",
104
+ "passwordContainsFirstName": "Password should not contain your first name.",
105
+ "passwordContainsLastName": "Password should not contain your last name.",
106
+ "passwordContainsUsername": "Password should not contain your username.",
107
+ "passwordContainsEmail": "Password should not contain your email.",
108
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
109
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
110
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
76
111
  },
77
112
  "hr": {
78
113
  "title": "Promijeni lozinku",
@@ -86,7 +121,14 @@ const TRANSLATIONS = {
86
121
  "successMsg": "Lozinka je uspješno promijenjena",
87
122
  "errorMsgGeneric": "Došlo je do pogreške prilikom pokušaja promjene lozinke",
88
123
  "gm.pms.password_not_verified_unauthorized": "Unesena trenutna lozinka nije ispravna",
89
- "gm.pms.password_policy_failed": "Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."
124
+ "gm.pms.password_policy_failed": "Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene.",
125
+ "passwordContainsFirstName": "Password should not contain your first name.",
126
+ "passwordContainsLastName": "Password should not contain your last name.",
127
+ "passwordContainsUsername": "Password should not contain your username.",
128
+ "passwordContainsEmail": "Password should not contain your email.",
129
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
130
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
131
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
90
132
  },
91
133
  "tr": {
92
134
  "title": "Şifreyi Değiştir",
@@ -100,7 +142,14 @@ const TRANSLATIONS = {
100
142
  "successMsg": "Şifre başarıyla değiştirildi",
101
143
  "errorMsgGeneric": "Şifrenizi değiştirirken bir hata oluştu",
102
144
  "gm.pms.password_not_verified_unauthorized": "Girdiğiniz mevcut şifre yanlış",
103
- "gm.pms.password_policy_failed": "Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."
145
+ "gm.pms.password_policy_failed": "Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez.",
146
+ "passwordContainsFirstName": "Password should not contain your first name.",
147
+ "passwordContainsLastName": "Password should not contain your last name.",
148
+ "passwordContainsUsername": "Password should not contain your username.",
149
+ "passwordContainsEmail": "Password should not contain your email.",
150
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
151
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
152
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
104
153
  },
105
154
  "hu": {
106
155
  "title": "Jelszó megváltoztatása",
@@ -114,7 +163,14 @@ const TRANSLATIONS = {
114
163
  "successMsg": "A jelszó sikeresen megváltozott",
115
164
  "errorMsgGeneric": "Hiba történt a jelszó megváltoztatásakor",
116
165
  "gm.pms.password_not_verified_unauthorized": "A megadott jelenlegi jelszó helytelen",
117
- "gm.pms.password_policy_failed": "A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."
166
+ "gm.pms.password_policy_failed": "A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta.",
167
+ "passwordContainsFirstName": "Password should not contain your first name.",
168
+ "passwordContainsLastName": "Password should not contain your last name.",
169
+ "passwordContainsUsername": "Password should not contain your username.",
170
+ "passwordContainsEmail": "Password should not contain your email.",
171
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
172
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
173
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
118
174
  }
119
175
  };
120
176
  const getTranslations = (url) => {
@@ -257,15 +313,35 @@ const PamChangePassword = class {
257
313
  custom: this.policy.customValidationRules
258
314
  };
259
315
  };
260
- this.setErrorMsg = (key) => {
316
+ this.setErrorMsg = (key, response) => {
317
+ var _a, _b, _c;
261
318
  switch (key) {
262
319
  case 'gm.pms.password_policy_failed':
263
- const values = {
264
- forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
265
- minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
266
- hours: this.policy.minimumPasswordAgeLimitHours > 1 ? 'hours' : 'hour'
267
- };
268
- this.errorMsg = translate(key, this.language, { values: values });
320
+ if (((_b = (_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a.policy) === null || _b === void 0 ? void 0 : _b.length) > 0) {
321
+ const values = {
322
+ forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
323
+ minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
324
+ hours: this.policy.minimumPasswordAgeLimitHours > 1 ? 'hours' : 'hour'
325
+ };
326
+ this.errorMsg = translate(key, this.language, { values: values });
327
+ }
328
+ else if (((_c = response === null || response === void 0 ? void 0 : response.errors) === null || _c === void 0 ? void 0 : _c.strength) && Array.isArray(response.errors.strength)) {
329
+ //translate each specific error message
330
+ const translatedErrors = response.errors.strength.map((error) => {
331
+ const errorKeyMap = {
332
+ 'Password should not contain first name.': 'passwordContainsFirstName',
333
+ 'Password should not contain last name.': 'passwordContainsLastName',
334
+ 'Password should not contain username.': 'passwordContainsUsername',
335
+ 'Password should not contain email.': 'passwordContainsEmail',
336
+ 'Password should not contain first name + last name.': 'passwordContainsFirstNamePlusLastName',
337
+ 'Password should not contain first name and last name.': 'passwordContainsFirstNameAndLastName',
338
+ 'Password should not contain date of birth.': 'passwordContainsDateOfBirth',
339
+ };
340
+ const translationKey = errorKeyMap[error] || null;
341
+ return translationKey ? translate(translationKey, this.language) : error;
342
+ });
343
+ this.errorMsg = translatedErrors.join(' ');
344
+ }
269
345
  break;
270
346
  case 'gm.pms.password_not_verified_unauthorized':
271
347
  this.errorMsg = translate(key, this.language);
@@ -330,7 +406,7 @@ const PamChangePassword = class {
330
406
  window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMsg', this.language) } }, window.location.href);
331
407
  }
332
408
  else {
333
- this.setErrorMsg(res.message);
409
+ this.setErrorMsg(res.message, res);
334
410
  window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMsg } }, window.location.href);
335
411
  }
336
412
  })
@@ -38,15 +38,35 @@ export class PamChangePassword {
38
38
  custom: this.policy.customValidationRules
39
39
  };
40
40
  };
41
- this.setErrorMsg = (key) => {
41
+ this.setErrorMsg = (key, response) => {
42
+ var _a, _b, _c;
42
43
  switch (key) {
43
44
  case 'gm.pms.password_policy_failed':
44
- const values = {
45
- forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
46
- minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
47
- hours: this.policy.minimumPasswordAgeLimitHours > 1 ? 'hours' : 'hour'
48
- };
49
- this.errorMsg = translate(key, this.language, { values: values });
45
+ if (((_b = (_a = response === null || response === void 0 ? void 0 : response.errors) === null || _a === void 0 ? void 0 : _a.policy) === null || _b === void 0 ? void 0 : _b.length) > 0) {
46
+ const values = {
47
+ forbiddenLastPasswordsCount: this.policy.forbiddenLastPasswordsCount,
48
+ minimumPasswordAgeLimitHours: this.policy.minimumPasswordAgeLimitHours,
49
+ hours: this.policy.minimumPasswordAgeLimitHours > 1 ? 'hours' : 'hour'
50
+ };
51
+ this.errorMsg = translate(key, this.language, { values: values });
52
+ }
53
+ else if (((_c = response === null || response === void 0 ? void 0 : response.errors) === null || _c === void 0 ? void 0 : _c.strength) && Array.isArray(response.errors.strength)) {
54
+ //translate each specific error message
55
+ const translatedErrors = response.errors.strength.map((error) => {
56
+ const errorKeyMap = {
57
+ 'Password should not contain first name.': 'passwordContainsFirstName',
58
+ 'Password should not contain last name.': 'passwordContainsLastName',
59
+ 'Password should not contain username.': 'passwordContainsUsername',
60
+ 'Password should not contain email.': 'passwordContainsEmail',
61
+ 'Password should not contain first name + last name.': 'passwordContainsFirstNamePlusLastName',
62
+ 'Password should not contain first name and last name.': 'passwordContainsFirstNameAndLastName',
63
+ 'Password should not contain date of birth.': 'passwordContainsDateOfBirth',
64
+ };
65
+ const translationKey = errorKeyMap[error] || null;
66
+ return translationKey ? translate(translationKey, this.language) : error;
67
+ });
68
+ this.errorMsg = translatedErrors.join(' ');
69
+ }
50
70
  break;
51
71
  case 'gm.pms.password_not_verified_unauthorized':
52
72
  this.errorMsg = translate(key, this.language);
@@ -111,7 +131,7 @@ export class PamChangePassword {
111
131
  window.postMessage({ type: 'WidgetNotification', data: { type: 'success', message: translate('successMsg', this.language) } }, window.location.href);
112
132
  }
113
133
  else {
114
- this.setErrorMsg(res.message);
134
+ this.setErrorMsg(res.message, res);
115
135
  window.postMessage({ type: 'WidgetNotification', data: { type: 'error', message: this.errorMsg } }, window.location.href);
116
136
  }
117
137
  })
@@ -12,7 +12,14 @@ export const TRANSLATIONS = {
12
12
  "successMsg": "Password changed successfully",
13
13
  "errorMsgGeneric": "There was an error when attempting to change your password",
14
14
  "gm.pms.password_not_verified_unauthorized": "The current password you have entered is incorrect",
15
- "gm.pms.password_policy_failed": "Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change."
15
+ "gm.pms.password_policy_failed": "Password cannot be the same as any of the {forbiddenLastPasswordsCount} previous passwords. Password cannot be changed sooner than {minimumPasswordAgeLimitHours} {hours} after the last change.",
16
+ "passwordContainsFirstName": "Password should not contain your first name.",
17
+ "passwordContainsLastName": "Password should not contain your last name.",
18
+ "passwordContainsUsername": "Password should not contain your username.",
19
+ "passwordContainsEmail": "Password should not contain your email.",
20
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
21
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
22
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
16
23
  },
17
24
  "fr": {
18
25
  "title": "Changer le mot de passe",
@@ -26,7 +33,14 @@ export const TRANSLATIONS = {
26
33
  "successMsg": "Mot de passe changé avec succès",
27
34
  "errorMsgGeneric": "Une erreur est survenue lors de la tentative de changement de mot de passe",
28
35
  "gm.pms.password_not_verified_unauthorized": "Le mot de passe actuel que vous avez entré est incorrect",
29
- "gm.pms.password_policy_failed": "Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement."
36
+ "gm.pms.password_policy_failed": "Le mot de passe ne peut pas être identique à l'un des {forbiddenLastPasswordsCount} derniers mots de passe. Le mot de passe ne peut pas être changé avant {minimumPasswordAgeLimitHours} {hours} après le dernier changement.",
37
+ "passwordContainsFirstName": "Password should not contain your first name.",
38
+ "passwordContainsLastName": "Password should not contain your last name.",
39
+ "passwordContainsUsername": "Password should not contain your username.",
40
+ "passwordContainsEmail": "Password should not contain your email.",
41
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
42
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
43
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
30
44
  },
31
45
  "ro": {
32
46
  "title": "Schimbă Parola",
@@ -40,7 +54,14 @@ export const TRANSLATIONS = {
40
54
  "successMsg": "Parola a fost schimbată cu succes",
41
55
  "errorMsgGeneric": "A apărut o eroare la încercarea de schimbare a parolei",
42
56
  "gm.pms.password_not_verified_unauthorized": "Parola curentă introdusă este incorectă",
43
- "gm.pms.password_policy_failed": "Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare."
57
+ "gm.pms.password_policy_failed": "Parola nu poate fi aceeași cu oricare dintre ultimele {forbiddenLastPasswordsCount} parole. Parola nu poate fi schimbată mai devreme de {minimumPasswordAgeLimitHours} {hours} după ultima schimbare.",
58
+ "passwordContainsFirstName": "Password should not contain your first name.",
59
+ "passwordContainsLastName": "Password should not contain your last name.",
60
+ "passwordContainsUsername": "Password should not contain your username.",
61
+ "passwordContainsEmail": "Password should not contain your email.",
62
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
63
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
64
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
44
65
  },
45
66
  "es": {
46
67
  "title": "Cambiar Contraseña",
@@ -54,7 +75,14 @@ export const TRANSLATIONS = {
54
75
  "successMsg": "Contraseña cambiada con éxito",
55
76
  "errorMsgGeneric": "Hubo un error al intentar cambiar tu contraseña",
56
77
  "gm.pms.password_not_verified_unauthorized": "La contraseña actual que has introducido es incorrecta",
57
- "gm.pms.password_policy_failed": "La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio."
78
+ "gm.pms.password_policy_failed": "La contraseña no puede ser la misma que cualquiera de las {forbiddenLastPasswordsCount} contraseñas anteriores. La contraseña no se puede cambiar antes de {minimumPasswordAgeLimitHours} {hours} después del último cambio.",
79
+ "passwordContainsFirstName": "Password should not contain your first name.",
80
+ "passwordContainsLastName": "Password should not contain your last name.",
81
+ "passwordContainsUsername": "Password should not contain your username.",
82
+ "passwordContainsEmail": "Password should not contain your email.",
83
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
84
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
85
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
58
86
  },
59
87
  "pt": {
60
88
  "title": "Alterar Senha",
@@ -68,7 +96,14 @@ export const TRANSLATIONS = {
68
96
  "successMsg": "Senha alterada com sucesso",
69
97
  "errorMsgGeneric": "Ocorreu um erro ao tentar alterar sua senha",
70
98
  "gm.pms.password_not_verified_unauthorized": "A senha atual que você inseriu está incorreta",
71
- "gm.pms.password_policy_failed": "A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração."
99
+ "gm.pms.password_policy_failed": "A senha não pode ser a mesma que qualquer uma das últimas {forbiddenLastPasswordsCount} senhas. A senha não pode ser alterada antes de {minimumPasswordAgeLimitHours} {hours} após a última alteração.",
100
+ "passwordContainsFirstName": "Password should not contain your first name.",
101
+ "passwordContainsLastName": "Password should not contain your last name.",
102
+ "passwordContainsUsername": "Password should not contain your username.",
103
+ "passwordContainsEmail": "Password should not contain your email.",
104
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
105
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
106
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
72
107
  },
73
108
  "hr": {
74
109
  "title": "Promijeni lozinku",
@@ -82,7 +117,14 @@ export const TRANSLATIONS = {
82
117
  "successMsg": "Lozinka je uspješno promijenjena",
83
118
  "errorMsgGeneric": "Došlo je do pogreške prilikom pokušaja promjene lozinke",
84
119
  "gm.pms.password_not_verified_unauthorized": "Unesena trenutna lozinka nije ispravna",
85
- "gm.pms.password_policy_failed": "Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene."
120
+ "gm.pms.password_policy_failed": "Lozinka ne može biti ista kao bilo koja od posljednjih {forbiddenLastPasswordsCount} lozinki. Lozinka se ne može promijeniti prije nego što prođe {minimumPasswordAgeLimitHours} {hours} od posljednje promjene.",
121
+ "passwordContainsFirstName": "Password should not contain your first name.",
122
+ "passwordContainsLastName": "Password should not contain your last name.",
123
+ "passwordContainsUsername": "Password should not contain your username.",
124
+ "passwordContainsEmail": "Password should not contain your email.",
125
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
126
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
127
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
86
128
  },
87
129
  "tr": {
88
130
  "title": "Şifreyi Değiştir",
@@ -96,7 +138,14 @@ export const TRANSLATIONS = {
96
138
  "successMsg": "Şifre başarıyla değiştirildi",
97
139
  "errorMsgGeneric": "Şifrenizi değiştirirken bir hata oluştu",
98
140
  "gm.pms.password_not_verified_unauthorized": "Girdiğiniz mevcut şifre yanlış",
99
- "gm.pms.password_policy_failed": "Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez."
141
+ "gm.pms.password_policy_failed": "Şifre, son {forbiddenLastPasswordsCount} şifreden herhangi biriyle aynı olamaz. Şifre, son değişiklikten sonra {minimumPasswordAgeLimitHours} {hours} içinde değiştirilemez.",
142
+ "passwordContainsFirstName": "Password should not contain your first name.",
143
+ "passwordContainsLastName": "Password should not contain your last name.",
144
+ "passwordContainsUsername": "Password should not contain your username.",
145
+ "passwordContainsEmail": "Password should not contain your email.",
146
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
147
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
148
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
100
149
  },
101
150
  "hu": {
102
151
  "title": "Jelszó megváltoztatása",
@@ -110,7 +159,14 @@ export const TRANSLATIONS = {
110
159
  "successMsg": "A jelszó sikeresen megváltozott",
111
160
  "errorMsgGeneric": "Hiba történt a jelszó megváltoztatásakor",
112
161
  "gm.pms.password_not_verified_unauthorized": "A megadott jelenlegi jelszó helytelen",
113
- "gm.pms.password_policy_failed": "A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta."
162
+ "gm.pms.password_policy_failed": "A jelszó nem egyezhet meg az utolsó {forbiddenLastPasswordsCount} jelszóval. A jelszó nem változtatható meg {minimumPasswordAgeLimitHours} {hours}-on belül az utolsó módosítás óta.",
163
+ "passwordContainsFirstName": "Password should not contain your first name.",
164
+ "passwordContainsLastName": "Password should not contain your last name.",
165
+ "passwordContainsUsername": "Password should not contain your username.",
166
+ "passwordContainsEmail": "Password should not contain your email.",
167
+ "passwordContainsFirstNamePlusLastName": "Password should not contain first name + last name.",
168
+ "passwordContainsFirstNameAndLastName": "Password should not contain first name and last name.",
169
+ "passwordContainsDateOfBirth": "Password should not contain date of birth."
114
170
  }
115
171
  };
116
172
  export const getTranslations = (url) => {