Authored by 毕凯

Merge branch 'hotfix/login' into 'gray'

Hotfix/login



See merge request !345
... ... @@ -419,16 +419,19 @@ let setPassword = (req, res, next) => {
RegService.regMobileAes(area, mobile, password, shoppingKey, smsCode, isFromMy).then((result) => {
if (!result.code || result.code !== 200) {
return Promise.reject(result);
return res.send(result);
}
if (!result.data || !result.data.uid) {
return Promise.reject(result);
return res.send(result);
}
resultCopy = result;
return AuthHelper.syncUserSession(result.data.uid, req, res);
}).then(() => {
if (!resultCopy) {
return;
}
// 返回跳转到来源页面
let refer = req.cookies.refer;
... ...