summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMaksim Zakharov <m.zakharov@IBS.RU>2022-09-07 16:11:29 +0300
committerMaksim Zakharov <m.zakharov@IBS.RU>2022-09-07 16:11:29 +0300
commitd20970e7b63511bc6800608a35407bf3712aa2f8 (patch)
treeef616d41bbefe3e4ef8becbf139c4b8c71f24bb9
parent6dc936d93e7792e61f4b118e6e6848874f52cc31 (diff)
downloadwebui-vue-d20970e7b63511bc6800608a35407bf3712aa2f8.tar.xz
fix user create
-rw-r--r--src/locales/ru-RU.json30
-rw-r--r--src/store/modules/SecurityAndAccess/UserManagementStore.js2
2 files changed, 16 insertions, 16 deletions
diff --git a/src/locales/ru-RU.json b/src/locales/ru-RU.json
index 3a0b3212..eacd2a7a 100644
--- a/src/locales/ru-RU.json
+++ b/src/locales/ru-RU.json
@@ -94,21 +94,21 @@
}
},
"passwordErrors": {
- "it is based on your username": "Пароль на основе имени пользователя",
- "it is based upon your password entry": "Пароль на основе введенного вами пароля",
- "it is derived from your password entry": "Пароль получен из введенного вами пароля",
- "it is derivable from your password entry": "Пароль получается из введенного вами пароля",
- "it's derivable from your password entry": "Пароль получается из введенного вами пароля",
- "you are not registered in the password file": "Пароль не зарегистрирован в файле паролей",
- "it is WAY too short": "Пароль СЛИШКОМ короткий",
- "it is too short": "Пароль слишком короткий",
- "it does not contain enough DIFFERENT characters": "Пароль не содержит достаточного числа РАЗЛИЧНЫХ символов",
- "it is all whitespace": "Пароль состоит из пробелов",
- "it is too simplistic/systematic": "Пароль слишком простой",
+ "it is based on your username": "Пароль на основе имени пользователя.",
+ "it is based upon your password entry": "Пароль на основе введенного вами пароля.",
+ "it is derived from your password entry": "Пароль получен из введенного вами пароля.",
+ "it is derivable from your password entry": "Пароль получается из введенного вами пароля.",
+ "it's derivable from your password entry": "Пароль получается из введенного вами пароля.",
+ "you are not registered in the password file": "Пароль не зарегистрирован в файле паролей.",
+ "it is WAY too short": "Пароль СЛИШКОМ короткий.",
+ "it is too short": "Пароль слишком короткий.",
+ "it does not contain enough DIFFERENT characters": "Пароль не содержит достаточного числа РАЗЛИЧНЫХ символов.",
+ "it is all whitespace": "Пароль состоит из пробелов.",
+ "it is too simplistic/systematic": "Пароль слишком простой.",
"it looks like a National Insurance number.": "Пароль похож на номер государственного страхования.",
- "it is based on a dictionary word": "Пароль на основе слова из словаря",
- "it is based on a (reversed) dictionary word": "Пароль на основе (перевернутого) слова из словаря",
- "error loading dictionary": "Ошибка при загрузке словаря"
+ "it is based on a dictionary word": "Пароль на основе слова из словаря.",
+ "it is based on a (reversed) dictionary word": "Пароль на основе (перевернутого) слова из словаря.",
+ "error loading dictionary": "Ошибка при загрузке словаря."
},
"chart": {
"thresholdFailure": "Пороговое значение отказ",
@@ -641,7 +641,7 @@
"errorBatchEnable": "Ошибка включения %{count} пользователя. | Ошибка включения %{count} пользователей.",
"errorCreateUser": "Ошибка создания пользователя '%{username}'.",
"errorDeleteUser": "Ошибка удаления пользователя '%{username}'.",
- "errorLoadAccountSettings": "Ошибка загрузки настроек учётной записи",
+ "errorLoadAccountSettings": "Ошибка загрузки настроек учётной записи.",
"errorLoadUsers": "Ошибка загрузки учётных записей пользователей.",
"errorSaveSettings": "Ошибка сохранения настроек учётной записи.",
"errorUpdateUser": "Ошибка обновления учётной записи пользователя '%{username}'.",
diff --git a/src/store/modules/SecurityAndAccess/UserManagementStore.js b/src/store/modules/SecurityAndAccess/UserManagementStore.js
index 1595ed9b..66466088 100644
--- a/src/store/modules/SecurityAndAccess/UserManagementStore.js
+++ b/src/store/modules/SecurityAndAccess/UserManagementStore.js
@@ -116,7 +116,7 @@ const UserManagementStore = {
console.log(error);
if (error.response) {
const codeRaw =
- error.response.data['Password@Message.ExtendedInfo'][0].Oem
+ error.response.data['Password@Message.ExtendedInfo'][0]?.Oem
?.OpenBMC?.ErrorMessage[0];
const code = codeRaw
? codeRaw.replace('BAD PASSWORD: ', '')