Add functionality to update password with password hash (#15343)

* Add functionality to update password with password hash

This can be used to update a user's password with a direct password
hash instead of providing the password in plaintext.

* Use test helper for local mode
Этот коммит содержится в:
Gabe Jackson
2020-08-26 11:28:00 -04:00
коммит произвёл GitHub
родитель e83462637e
Коммит 90ef61f74c
19 изменённых файлов: 243 добавлений и 137 удалений

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

@@ -3038,6 +3038,10 @@
"id": "api.user.update_password.oauth.app_error",
"translation": "Update password failed because the user is logged in through an OAuth service."
},
{
"id": "api.user.update_password.user_and_hashed.app_error",
"translation": "Only system administrators can set already-hashed passwords."
},
{
"id": "api.user.update_password.valid_account.app_error",
"translation": "Update password failed because we couldn't find a valid account."