Explorar el Código

登录接口解密修改

szjbdgzl hace 1 año
padre
commit
d5714c607b

+ 6 - 1
ibps-oauth-root/modules/oauth-server2-default/src/main/java/com/lc/ibps/cloud/oauth/server/provider/UserProvider.java

@@ -131,7 +131,12 @@ public class UserProvider extends BaseProvider implements IUserService {
 			captcha(requestId, username, captcha);
 			captcha(requestId, username, captcha);
 			
 			
 			// 用户登录
 			// 用户登录
-			loginVo.setPassword(AESUtil.decryptUser(loginVo.getPassword()));
+			try{
+				String password = AESUtil.decryptUser(loginVo.getPassword());
+				loginVo.setPassword(password);
+			}catch (Exception e){
+				//
+			}
 			PartyUserPo user = login0(loginVo);
 			PartyUserPo user = login0(loginVo);
 			String statistic = getStatistic(user);
 			String statistic = getStatistic(user);
 			result.addVariable("statistic", statistic);
 			result.addVariable("statistic", statistic);