Commit a014102c authored by 赵啸非's avatar 赵啸非

添加更新默认用户角色

parent 828a0f89
......@@ -59,9 +59,9 @@ public class LoginController extends BaseCRUDJsonBodyMappingController<UserServi
String loginName = loginForm.getLoginName();
String password = loginForm.getPassword();
String ip = super.getRequestIP(request);
if (StringUtils.isEmpty(loginName) || StringUtils.isEmpty(password)) {
if (StringUtils.isEmpty(loginName)) {
ret.put(KEY_RESULT_CODE, VALUE_RESULT_FAILURE);
ret.put(KEY_RESULT_MSG, "未获取到用户信息,请重新登录");
ret.put(KEY_RESULT_MSG, "未获取到用户信息");
return ret.toJSONString();
}
UserEntity userEntity = null;
......
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