Creating common token store and moving email invites and verification to it (#6213)
Этот коммит содержится в:
коммит произвёл
Joram Wilander
родитель
0e007e344b
Коммит
9a87bb3af6
@@ -655,10 +655,9 @@ export function updatePassword(userId, currentPassword, newPassword, success, er
|
||||
);
|
||||
}
|
||||
|
||||
export function verifyEmail(uid, hid, success, error) {
|
||||
export function verifyEmail(token, success, error) {
|
||||
Client.verifyEmail(
|
||||
uid,
|
||||
hid,
|
||||
token,
|
||||
(data) => {
|
||||
if (success) {
|
||||
success(data);
|
||||
@@ -672,9 +671,9 @@ export function verifyEmail(uid, hid, success, error) {
|
||||
);
|
||||
}
|
||||
|
||||
export function resetPassword(code, password, success, error) {
|
||||
export function resetPassword(token, password, success, error) {
|
||||
Client.resetPassword(
|
||||
code,
|
||||
token,
|
||||
password,
|
||||
() => {
|
||||
browserHistory.push('/login?extra=' + ActionTypes.PASSWORD_CHANGE);
|
||||
|
||||
Ссылка в новой задаче
Block a user