Move instances of Client.resendVerification() in components to an action (#5169)

Этот коммит содержится в:
Carlos Tadeu Panato Junior
2017-01-24 12:51:43 +01:00
коммит произвёл George Goldberg
родитель b87cd4e276
Коммит 479bd1a2b3
2 изменённых файлов: 19 добавлений и 2 удалений

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

@@ -600,3 +600,19 @@ export function resetPassword(code, password, success, error) {
}
);
}
export function resendVerification(email, success, error) {
Client.resendVerification(
email,
() => {
if (success) {
success();
}
},
(err) => {
if (error) {
error(err);
}
}
);
}