封禁添加用户登录idfix

This commit is contained in:
2024-10-11 16:31:05 +08:00
parent 1b830ea0a4
commit 851eba61ec

View File

@@ -184,7 +184,7 @@ public class MyUserDetailsServiceImpl implements MyUserDetailsService {
CustomOAuth2Exception exception = new CustomOAuth2Exception(CustomOAuth2Exception.ACCOUNT_ERROR, "");
Integer partitionId = users.getPartitionId();
exception.addAdditionalInformation("reason", I18NMessageSourceUtil.getMessage(ACCOUNT_LOGIN_BLOCK_MSG, new Object[]{users.getErbanNo()}, partitionId));
exception.addAdditionalInformation("date", I18NMessageSourceUtil.getMessage(ACCOUNT_LOGIN_BLOCK_MSG, new Object[]{String.valueOf(blockEndTime)}, partitionId));
exception.addAdditionalInformation("date", String.valueOf(blockEndTime));
throw exception;
}