Move instances of Client.updatePassword() in components to an action (#4908) (#5021)

Этот коммит содержится в:
AymaneKhouaji
2017-01-10 11:48:37 +01:00
коммит произвёл George Goldberg
родитель 548adb178e
Коммит 0cba48d155
2 изменённых файлов: 18 добавлений и 1 удалений

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

@@ -449,3 +449,18 @@ export function updateActive(userId, active, success, error) {
}
);
}
export function updatePassword(userId, currentPassword, newPassword, success, error) {
Client.updatePassword(userId, currentPassword, newPassword,
() => {
if (success) {
success();
}
},
(err) => {
if (error) {
error(err);
}
}
);
}