Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yoho-blk
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
1
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
htoooth
9 years ago
Commit
3197c5259da40e030e758ca42b9d5fa95717bd85
1 parent
ec80e9df
增加除去空字符串的操作
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
3197c52
...
...
@@ -34,7 +34,10 @@ const _doPassportCallback = (req, res, user) => {
if
(
user
.
openId
&&
user
.
nickname
)
{
let
signinByOpenID
=
LoginService
.
signinByOpenIDAsync
(
user
.
nickname
,
user
.
openId
,
user
.
sourceType
,
shoppingKey
,
user
.
unionId
);
_
.
trim
(
user
.
nickname
),
_
.
trim
(
user
.
openId
),
_
.
trim
(
user
.
sourceType
),
_
.
trim
(
shoppingKey
),
_
.
trim
(
user
.
unionId
)
);
return
signinByOpenID
.
then
((
result
)
=>
{
if
(
result
.
code
!==
200
)
{
...
...
Please
register
or
login
to post a comment