Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuy-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
1
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
2016-08-06 16:30:38 +0800
Commit
ef3cb6829676aaa84fe3177dfb96a1b8ce9a2078
1 parent
c334b422
加强第三方的登录。
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
0 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
ef3cb68
...
...
@@ -31,6 +31,8 @@ function doPassportCallback(req, res, user) {
if
(
user
.
openId
&&
user
.
nickname
)
{
let
signinByOpenID
;
user
.
nickname
=
_
.
trim
(
user
.
nickname
);
if
(
user
.
sourceType
===
'wechat'
)
{
// PC 的微信登录之前使用了 open_id, 所以需要特别的接口处理
...
...
Please
register
or
login
to post a comment