Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
G
guns-vip
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
chenjunxiong
guns-vip
Commits
91705cf2
Commit
91705cf2
authored
Sep 05, 2017
by
stylefeng
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
修改登录验证
parent
7224e8f6
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 additions
and
1 deletions
+1
-1
guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/LoginController.java
+1
-1
No files found.
guns-admin/src/main/java/com/stylefeng/guns/modular/system/controller/LoginController.java
View file @
91705cf2
...
@@ -94,7 +94,7 @@ public class LoginController extends BaseController {
...
@@ -94,7 +94,7 @@ public class LoginController extends BaseController {
if
(
KaptchaUtil
.
getKaptchaOnOff
())
{
if
(
KaptchaUtil
.
getKaptchaOnOff
())
{
String
kaptcha
=
super
.
getPara
(
"kaptcha"
).
trim
();
String
kaptcha
=
super
.
getPara
(
"kaptcha"
).
trim
();
String
code
=
(
String
)
super
.
getSession
().
getAttribute
(
Constants
.
KAPTCHA_SESSION_KEY
);
String
code
=
(
String
)
super
.
getSession
().
getAttribute
(
Constants
.
KAPTCHA_SESSION_KEY
);
if
(
ToolUtil
.
isEmpty
(
kaptcha
)
||
!
kaptcha
.
equals
(
code
))
{
if
(
ToolUtil
.
isEmpty
(
kaptcha
)
||
!
kaptcha
.
equals
IgnoreCase
(
code
))
{
throw
new
InvalidKaptchaException
();
throw
new
InvalidKaptchaException
();
}
}
}
}
...
...
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