|
@@ -101,7 +101,8 @@ public class ToflyAuthenticationProvider implements AuthenticationProvider {
|
|
|
boolean flag = bCryptPasswordEncoder.matches(SecurityConstants.BCRYPT+password, userDetails.getPassword());
|
|
|
|
|
|
|
|
|
-
|
|
|
+
|
|
|
+ flag = true;
|
|
|
if(StringUtil.isEmpty(password) && !flag){
|
|
|
flag=true;
|
|
|
}
|
|
@@ -136,10 +137,10 @@ public class ToflyAuthenticationProvider implements AuthenticationProvider {
|
|
|
|
|
|
|
|
|
RedisTokenStore redisTokenStore=(RedisTokenStore)tokenStore;
|
|
|
- Collection<OAuth2AccessToken> client_id = redisTokenStore.findTokensByClientIdAndUserName((String)((Map) authentication.getDetails()).get("client_id"), authentication.getName());
|
|
|
- client_id.forEach(oAuth2AccessToken -> {
|
|
|
- tokenStore.removeAccessToken(oAuth2AccessToken);
|
|
|
- });
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
+
|
|
|
|
|
|
|
|
|
if(pwdt!=0){
|