|
|
@@ -227,14 +227,14 @@ public class UserInfoController {
|
|
227
|
227
|
})
|
|
228
|
228
|
public Map<String, Object> Login(HttpServletRequest request, String username, String password, String yzm, String from) {
|
|
229
|
229
|
Map<String, Object> map = new HashMap<String, Object>();
|
|
230
|
|
- /*if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
|
|
|
230
|
+ if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
|
|
231
|
231
|
String yzm_code = ObjectUtils.toString(request.getSession().getAttribute("Service_Code"),"");
|
|
232
|
232
|
if (!yzm_code.equals(yzm)) {
|
|
233
|
233
|
map.put("status", false);
|
|
234
|
234
|
map.put("success", "验证码输入错误!");
|
|
235
|
235
|
return map;
|
|
236
|
236
|
}
|
|
237
|
|
- }*/
|
|
|
237
|
+ }
|
|
238
|
238
|
UserInfo userInfo = null;
|
|
239
|
239
|
if(!userInfoService.validUsername(null,username)) {//用户名存在
|
|
240
|
240
|
/**************************限制单个用户的同时重复登录操作************************/
|