...
|
...
|
@@ -262,7 +262,7 @@ const sina = { |
|
|
log.error(`sina authenticate error : ${JSON.stringify(err)}`);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
let nickname = user.screen_name;
|
|
|
let nickname = _.trim(user.screen_name);
|
|
|
let openId = user.id;
|
|
|
|
|
|
doPassportCallback(req, res, {
|
...
|
...
|
@@ -292,7 +292,7 @@ const qq = { |
|
|
log.error(`qq authenticate error : ${JSON.stringify(err)}`);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
let nickname = user.nickname;
|
|
|
let nickname = _.trim(user.nickname);
|
|
|
let openId = user.id;
|
|
|
|
|
|
doPassportCallback(req, res, {
|
...
|
...
|
@@ -317,7 +317,7 @@ const alipay = { |
|
|
log.error(`alipay authenticate error : ${JSON.stringify(err)}`);
|
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
let nickname = user.realName;
|
|
|
let nickname = _.trim(user.realName);
|
|
|
let openId = user.userId;
|
|
|
|
|
|
doPassportCallback(req, res, {
|
...
|
...
|
@@ -344,7 +344,7 @@ const douban = { |
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
|
|
|
let nickname = user.displayName;
|
|
|
let nickname = _.trim(user.displayName);
|
|
|
let openId = user.id;
|
|
|
|
|
|
doPassportCallback(req, res, {
|
...
|
...
|
@@ -371,7 +371,7 @@ const renren = { |
|
|
return res.redirect(loginPage);
|
|
|
}
|
|
|
|
|
|
let nickname = user.displayName;
|
|
|
let nickname = _.trim(user.displayName);
|
|
|
let openId = user.id;
|
|
|
|
|
|
doPassportCallback(req, res, {
|
...
|
...
|
|