Commit 91049b6a authored by 赵啸非's avatar 赵啸非

修改部分pom

parent cb6fd32e
...@@ -62,7 +62,7 @@ public class LoginController extends BaseCRUDJsonController<UserService, UserFor ...@@ -62,7 +62,7 @@ public class LoginController extends BaseCRUDJsonController<UserService, UserFor
JSONObject ret = new JSONObject(); JSONObject ret = new JSONObject();
String loginName = loginForm.getLoginName(); String loginName = loginForm.getLoginName();
String password = loginForm.getPassword(); String password = loginForm.getPassword();
String securityCode = loginForm.getSecurityCode(); // String securityCode = loginForm.getSecurityCode();
String ip = super.getRequestIP(request); String ip = super.getRequestIP(request);
if (StringUtils.isEmpty(loginName) || StringUtils.isEmpty(password)) { if (StringUtils.isEmpty(loginName) || StringUtils.isEmpty(password)) {
ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE); ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
...@@ -72,13 +72,13 @@ public class LoginController extends BaseCRUDJsonController<UserService, UserFor ...@@ -72,13 +72,13 @@ public class LoginController extends BaseCRUDJsonController<UserService, UserFor
UserEntity userEntity = null; UserEntity userEntity = null;
try { try {
loginForm.validate(); loginForm.validate();
boolean result = validCodeService.doCheckImageValidCode(request.getSession().getId(), ip, securityCode); /* boolean result = validCodeService.doCheckImageValidCode(request.getSession().getId(), ip, securityCode);
if (!result) { if (!result) {
recordSysLog(request, userEntity, "登录验证码不正确或已过期!"); recordSysLog(request, userEntity, "登录验证码不正确或已过期!");
ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE); ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
ret.put(KEY_RESULT_MSG, "登录验证码不正确或已过期!"); ret.put(KEY_RESULT_MSG, "登录验证码不正确或已过期!");
return ret.toJSONString(); return ret.toJSONString();
} }*/
userEntity = userService.doLogin(loginName, password, ip); userEntity = userService.doLogin(loginName, password, ip);
userEntity.setLastLoginAddress(ip); userEntity.setLastLoginAddress(ip);
saveCurrUser(request, response, userEntity); saveCurrUser(request, response, userEntity);
......
...@@ -48,9 +48,9 @@ public class LoginForm extends BaseForm { ...@@ -48,9 +48,9 @@ public class LoginForm extends BaseForm {
if (password == null || password.trim().length() == 0) { if (password == null || password.trim().length() == 0) {
throw new AppException("密码不能为空!"); throw new AppException("密码不能为空!");
} }
if (securityCode == null || securityCode.trim().length() == 0) { /* if (securityCode == null || securityCode.trim().length() == 0) {
throw new AppException("验证码不能为空!"); throw new AppException("验证码不能为空!");
} }*/
return super.validate(); return super.validate();
} }
} }
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment