lyhzzz 1 vuosi sitten
vanhempi
commit
2f33b44ba8

+ 5 - 1
src/main/java/com/fdkankan/ucenter/service/impl/LoginService.java

@@ -167,7 +167,11 @@ public class LoginService {
         if(StringUtils.isNotBlank(param.getClear()) && param.getClear().equals("YES")){
             password = param.getPassword();
         }else {
-            password = Base64Converter.decode(Base64Converter.subText(param.getPassword()));
+            try {
+                password = Base64Converter.decode(Base64Converter.subText(param.getPassword()));
+            }catch (Exception e){
+                password = param.getPassword();
+            }
         }
         if(!password.matches(ConstantFilePath.PASSWORD_REGEX)){
             throw new BusinessException(LoginConstant.FAILURE_CODE_3011, LoginConstant.FAILURE_MSG_3011);