登陆验证

master
xueli.xue 9 years ago
parent e1a9656951
commit 6717d8d590
  1. 4
      xxl-job-admin/src/main/java/com/xxl/job/controller/IndexController.java
  2. 6
      xxl-job-admin/src/main/resources/config.properties

@ -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;

@ -7,4 +7,8 @@ mail.port=25
mail.username=ovono802302@163.com
mail.password=asdfzxcv
mail.sendFrom=ovono802302@163.com
mail.sendNick=《任务调度中心xxl-job》
mail.sendNick=《任务调度中心xxl-job》
# for login
login.username=admin
login.password=123456
Loading…
Cancel
Save