Authored by 郭成尧

passwordWeak-uid

... ... @@ -323,12 +323,18 @@ const local = {
domain: 'm.yohobuy.com'
});
// 弱密码返回数据
let passwordWeakReturn;
if (user.weakPassword) {
req.session.passwordWeak = user;
req.session.passwordWeak = _.assign(user, {
uid: {
toString: () => {
return _.parseInt(user.uid);
},
sessionKey: req.session.SESSION_KEY
}
});
passwordWeakReturn = {
code: 510,
url: '/passport/password/resetpage',
... ...