Toggle navigation
Toggle navigation
This project
Loading...
Sign in
fe
/
yohobuywap-node
·
Commits
Go to a project
GitLab
Go to group
Project
Activity
Files
Commits
Pipelines
0
Builds
0
Graphs
Milestones
Issues
0
Merge Requests
0
Members
Labels
Wiki
Forks
Network
Create a new issue
Download as
Email Patches
Plain Diff
Browse Files
Authored by
王水玲
2016-07-12 11:32:54 +0800
Commit
5069881cd1f24c54bdc214d1e3b4b4a62160ffaa
1 parent
7d4dd345
注册登录密码加密
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
3 deletions
apps/passport/controllers/bind.js
apps/passport/controllers/reg.js
apps/passport/controllers/bind.js
View file @
5069881
...
...
@@ -173,11 +173,11 @@ const bind = {
return
AuthHelper
.
syncUserSession
(
result
.
data
.
uid
,
req
,
res
).
then
(()
=>
{
result
.
data
.
refer
=
refer
;
return
result
;
});
});
}
else
{
return
{
code
:
400
,
message
:
'绑定失败'
,
data
:
''
};
}
}).
then
(
result
=>
{
res
.
json
(
result
);
}).
catch
(
next
);
...
...
apps/passport/controllers/reg.js
View file @
5069881
...
...
@@ -242,7 +242,6 @@ let setPassword = (req, res, next) => {
if
(
!
result
.
data
||
!
result
.
data
.
uid
)
{
return
Promise
.
reject
(
result
);
}
return
AuthHelper
.
syncUserSession
(
result
.
data
.
uid
,
req
,
res
);
}).
then
(()
=>
{
// 返回跳转到来源页面
...
...
Please
register
or
login
to post a comment