Authored by 王水玲

Merge branch 'feature/passport' into release/4.8

... ... @@ -166,9 +166,8 @@ const bind = {
return { code: 400, message: '短信验证码错误', data: '' };
}
}).then(result => {
let refer = req.cookies.refer;
let refer = helpers.urlFormat('/passport/bind/success?type=bind');
refer = refer ? decodeURI(refer) : helpers.urlFormat('/passport/bind/success?type=bind');
if (result && result.code && result.code === 200 && result.data.uid) {
return AuthHelper.syncUserSession(result.data.uid, req, res).then(() => {
result.data.refer = refer;
... ... @@ -246,7 +245,7 @@ const bind = {
let refer = req.cookies.refer;
let type = req.query.type;
refer = refer ? decodeURI(refer) : helpers.urlFormat('/?go=1');
refer = helpers.urlFormat('/?go=1');
res.render('bind/success', {
isPassportPage: true,
... ...