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
陈峰
2017-02-27 13:57:08 +0800
Commit
89e824ce057313ddc5c842710ff4ba0b3694079f
1 parent
3d43b1df
password验证失败时处理
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/passport/controllers/login.js
apps/passport/controllers/login.js
View file @
89e824c
...
...
@@ -217,10 +217,10 @@ const local = {
passport
.
authenticate
(
'local'
,
(
err
,
user
)
=>
{
let
loginSession
=
req
.
session
.
login
;
if
(
err
)
{
if
(
err
||
!
user
)
{
let
obj
=
{
code
:
400
,
message
:
err
,
message
:
err
||
'登录出错请重试'
,
data
:
''
};
...
...
Please
register
or
login
to post a comment