封禁添加用户登录idfix
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user