lvzhikai лет назад: 5
Родитель
Сommit
6248fd4d84

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

@@ -91,7 +91,7 @@ public class UserInfoController {
91 91
 	
92 92
 	@Value("${localOrCloud}")
93 93
 	private String localOrCloud;
94
-	
94
+
95 95
 	@Value("${forTheConnection}")
96 96
 	private String forTheConnection;
97 97
 	
@@ -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
 			/**************************限制单个用户的同时重复登录操作************************/