zlq 4 lat temu
rodzic
commit
1f7f067759

+ 2 - 2
src/main/java/com/chinaitop/depot/system/controller/UserInfoController.java

@@ -192,14 +192,14 @@ public class UserInfoController {
192 192
 	})
193 193
 	public Map<String, Object> Login(HttpServletRequest request, String username, String password, String yzm, String from) {
194 194
 		Map<String, Object> map = new HashMap<String, Object>();
195
-		/*if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
195
+		if (StringUtils.isBlank(from) || from.compareTo("app")!=0) {
196 196
 			String yzm_code = ObjectUtils.toString(request.getSession().getAttribute("Service_Code"),"");
197 197
 			if (!yzm_code.equals(yzm)) {
198 198
 				map.put("status", false);
199 199
 				map.put("success", "验证码输入错误!");
200 200
 				return map;
201 201
 			}
202
-		}*/
202
+		}
203 203
 		UserInfo userInfo = null;
204 204
 		if(!userInfoService.validUsername(null,username)) {//用户名存在
205 205
 			/**************************限制单个用户的同时重复登录操作************************/