Commit ff45adbb by fsn

登录接口对空格过滤

parent 60021b8c
...@@ -81,9 +81,9 @@ public class LoginController extends BaseController { ...@@ -81,9 +81,9 @@ public class LoginController extends BaseController {
@RequestMapping(value = "/login", method = RequestMethod.POST) @RequestMapping(value = "/login", method = RequestMethod.POST)
public String loginVali() { public String loginVali() {
String username = super.getPara("username"); String username = super.getPara("username").trim();
String password = super.getPara("password"); String password = super.getPara("password").trim();
String kaptcha = super.getPara("kaptcha"); 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);
......
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