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
8bccb96b0281485c2f13da35d04351ab15ebb570
1 parent
74adadcd
fix expire time.
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
2 deletions
apps/passport/models/login-auth-service.js
apps/passport/models/login-auth-service.js
View file @
8bccb96
...
...
@@ -48,9 +48,9 @@ passport.use(new LocalStrategy({
return
done
({
message
:
'登录账号格式错误'
},
null
);
}
let
expire
=
req
.
cookies
[
'LE'
+
md5
(
'_LOGIN_EXPIRE'
)];
let
expire
=
req
.
cookies
[
'LE'
+
md5
(
'_LOGIN_EXPIRE'
)]
||
''
;
if
(
_
.
isEmpty
(
expire
)
||
expire
<
(
new
Date
()).
getTime
()
/
1000
)
{
if
(
expire
&&
expire
<
(
new
Date
()).
getTime
()
/
1000
)
{
return
done
({
message
:
'页面停留时间过长,请刷新页面'
},
null
);
}
...
...
Please
register
or
login
to post a comment