修改sql
This commit is contained in:
@@ -58,8 +58,8 @@ public class UserLoginServlet extends HttpServlet {
|
||||
return;
|
||||
}
|
||||
// 在调用业务逻辑层
|
||||
userEntity adminUserEntity = userService.UserLogin(userName, userPwd);
|
||||
if (adminUserEntity == null) {
|
||||
userEntity UserEntity = userService.UserLogin(userName, userPwd);
|
||||
if (UserEntity == null) {
|
||||
// 用户名称或者密码错误!
|
||||
setResultError("用户名或者密码错误!!!", writer);
|
||||
return;
|
||||
@@ -75,7 +75,7 @@ public class UserLoginServlet extends HttpServlet {
|
||||
}
|
||||
// 能够db中查询到对象 登录成功了 将用户数据存放在session中
|
||||
session = req.getSession();
|
||||
session.setAttribute("user", adminUserEntity);
|
||||
session.setAttribute("user", UserEntity);
|
||||
setResultOK("登录成功!", writer);
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user