Browse Source

Merge remote-tracking branch 'origin/master'

larry 5 years ago
parent
commit
110b3d798b

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

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