Move instances of Client.verifyEmail() in components to an action (#5166)
Этот коммит содержится в:
коммит произвёл
George Goldberg
родитель
58b3c76c94
Коммит
1e5354cff3
@@ -561,3 +561,20 @@ export function updatePassword(userId, currentPassword, newPassword, success, er
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
export function verifyEmail(uid, hid, success, error) {
|
||||
Client.verifyEmail(
|
||||
uid,
|
||||
hid,
|
||||
(data) => {
|
||||
if (success) {
|
||||
success(data);
|
||||
}
|
||||
},
|
||||
(err) => {
|
||||
if (error) {
|
||||
error(err);
|
||||
}
|
||||
}
|
||||
);
|
||||
}
|
||||
|
||||
Ссылка в новой задаче
Block a user