[MM-34725] app/user: check if username or email is in use before patching a user (#17392)

* app/user: check if username or email is in use before patching a user

* reflect review comments

* fix tests
Этот коммит содержится в:
Ibrahim Serdar Acikgoz
2021-04-16 18:41:32 +03:00
коммит произвёл GitHub
родитель 3ea75332e7
Коммит 3a13987ee1
23 изменённых файлов: 57 добавлений и 85 удалений

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

@@ -4842,10 +4842,6 @@
"id": "store.sql_user.get_for_login.app_error",
"translation": "Non è stato possibile trovare un account con le credenziali fornite. Potrebbe essere necessario disporre di un invito da parte del proprietario del gruppo per l'accesso."
},
{
"id": "store.sql_user.update.email_taken.app_error",
"translation": "Questo indirizzo email è già in uso. Sceglierne un altro."
},
{
"id": "system.message.name",
"translation": "Sistema"