Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
熊鹏飞
/
xxljob220
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Settings
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit
6717d8d5
authored
May 20, 2016
by
xueli.xue
Browse files
Options
_('Browse Files')
Download
Email Patches
Plain Diff
登陆验证
parent
e1a96569
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
3 deletions
xxl-job-admin/src/main/java/com/xxl/job/controller/IndexController.java
xxl-job-admin/src/main/resources/config.properties
xxl-job-admin/src/main/java/com/xxl/job/controller/IndexController.java
View file @
6717d8d5
...
...
@@ -13,6 +13,7 @@ import org.springframework.web.bind.annotation.ResponseBody;
import
com.xxl.job.controller.annotation.PermessionLimit
;
import
com.xxl.job.controller.interceptor.PermissionInterceptor
;
import
com.xxl.job.core.model.ReturnT
;
import
com.xxl.job.core.util.PropertiesUtil
;
/**
* index controller
...
...
@@ -45,7 +46,8 @@ public class IndexController {
public
ReturnT
<
String
>
loginDo
(
HttpServletRequest
request
,
HttpServletResponse
response
,
String
userName
,
String
password
,
String
ifRemember
){
if
(!
PermissionInterceptor
.
ifLogin
(
request
))
{
if
(
StringUtils
.
isNotBlank
(
userName
)
&&
StringUtils
.
isNotBlank
(
password
)
&&
"admin"
.
equals
(
userName
)
&&
"123456"
.
equals
(
password
))
{
&&
PropertiesUtil
.
getString
(
"login.username"
).
equals
(
userName
)
&&
PropertiesUtil
.
getString
(
"login.password"
).
equals
(
password
))
{
boolean
ifRem
=
false
;
if
(
StringUtils
.
isNotBlank
(
ifRemember
)
&&
"on"
.
equals
(
ifRemember
))
{
ifRem
=
true
;
...
...
xxl-job-admin/src/main/resources/config.properties
View file @
6717d8d5
...
...
@@ -7,4 +7,8 @@ mail.port=25
mail.username
=
ovono802302@163.com
mail.password
=
asdfzxcv
mail.sendFrom
=
ovono802302@163.com
mail.sendNick
=
《任务调度中心xxl-job》
\ No newline at end of file
mail.sendNick
=
《任务调度中心xxl-job》
# for login
login.username
=
admin
login.password
=
123456
\ No newline at end of file
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