| | |
| | | HttpServletRequest request,PrintWriter out) {
|
| | |
|
| | | String ocode = request.getSession().getAttribute(Constant.RANDKEY) + "";
|
| | | |
| | | request.getSession().removeAttribute(Constant.RANDKEY);
|
| | | |
| | | if (StringUtil.isNullOrEmpty(code) || !code.equalsIgnoreCase(ocode)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("验证码错误"));
|
| | | return;
|
| | | }
|
| | | request.getSession().removeAttribute(Constant.RANDKEY);
|
| | |
|
| | | if (StringUtil.isNullOrEmpty(username)||StringUtil.isNullOrEmpty(pwd)) {
|
| | | JsonUtil.printMode(out, callback, JsonUtil.loadFalseResult("用户名或密码为空"));
|
| | |
| | | return;
|
| | | }
|
| | |
|
| | | |
| | | @RequestMapping("loginExitJP")
|
| | | public void loginExitJP(String callback, HttpServletRequest request,PrintWriter out) {
|
| | | request.getSession().removeAttribute(Constant.SESSION_ADMIN);
|
| | | request.getSession().invalidate();
|
| | | JsonUtil.printMode(out, callback,JsonUtil.loadTrueResult("退出成功"));
|
| | | return;
|
| | | }
|
| | | }
|