Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
Z
zhichan
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
蒋勇
zhichan
Commits
e0d1ab03
Commit
e0d1ab03
authored
Aug 25, 2020
by
王悦
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix重置密码次数超时
parent
b92c2bbe
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
center-manage/app/base/db/cache/loginTimesCache.js
+1
-1
center-manage/app/base/service/impl/auth/captchaSve.js
+1
-1
No files found.
center-manage/app/base/db/cache/loginTimesCache.js
View file @
e0d1ab03
...
@@ -30,7 +30,7 @@ class LoginTimesCache extends CacheBase {
...
@@ -30,7 +30,7 @@ class LoginTimesCache extends CacheBase {
let
cachekey
=
this
.
prefix
+
key
let
cachekey
=
this
.
prefix
+
key
let
cache
=
await
this
.
getCache
(
key
);
let
cache
=
await
this
.
getCache
(
key
);
if
(
!
cache
)
{
if
(
!
cache
)
{
await
this
.
cache
(
key
,
0
,
60
)
await
this
.
cache
(
key
,
"0"
,
60
)
}
}
return
this
.
redisClient
.
incr
(
cachekey
)
return
this
.
redisClient
.
incr
(
cachekey
)
}
}
...
...
center-manage/app/base/service/impl/auth/captchaSve.js
View file @
e0d1ab03
...
@@ -47,7 +47,7 @@ class CaptchaService {
...
@@ -47,7 +47,7 @@ class CaptchaService {
}
}
if
(
code
.
toLowerCase
()
!=
cacheCode
.
toLowerCase
())
{
if
(
code
.
toLowerCase
()
!=
cacheCode
.
toLowerCase
())
{
await
this
.
redisClient
.
delete
(
key
);
await
this
.
redisClient
.
delete
(
key
);
return
system
.
getResult
(
null
,
"验证码输入错误,
清
点击重试"
);
return
system
.
getResult
(
null
,
"验证码输入错误,
请
点击重试"
);
}
}
return
system
.
getResultSuccess
(
1
);
return
system
.
getResultSuccess
(
1
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment