MM-23244: Validate that AuthData and AuthService fields are mutually inclusive. (#14175)

* MM-23244: Validate that either both or neither AuthData and AuthService fields are set.

* MM-23244: Readability improvement.

* MM-23244: Adds translation. Tests for error id.

* MM-23244: Fix test.

Co-authored-by: mattermod <mattermod@users.noreply.github.com>
Этот коммит содержится в:
Martin Kraft
2020-04-09 18:51:27 -04:00
коммит произвёл GitHub
родитель bfb380630c
Коммит a9ea3587bb
4 изменённых файлов: 54 добавлений и 0 удалений

Просмотреть файл

@@ -3398,6 +3398,10 @@
"id": "app.import.validate_user_import_data.auth_data_and_password.error",
"translation": "User AuthData and Password are mutually exclusive."
},
{
"id": "app.import.validate_user_import_data.auth_data_and_service_dependency.error",
"translation": "User AuthService and AuthData are mutually inclusive."
},
{
"id": "app.import.validate_user_import_data.auth_data_length.error",
"translation": "User AuthData is too long."