mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-06 05:22:16 +08:00
bug fix:correct way to judge a user does not exist
This commit is contained in:
@@ -57,7 +57,7 @@ public class BaseSessionSignOn extends AbstractSingleSignOn {
|
||||
return null;
|
||||
}
|
||||
|
||||
if(ValidateUtils.isNull(accountResult) && authUserRegistration){
|
||||
if((ValidateUtils.isNull(accountResult) || ValidateUtils.isNull(accountResult.getData())) && authUserRegistration){
|
||||
//自动注册
|
||||
AccountDO accountDO = new AccountDO();
|
||||
accountDO.setUsername(dto.getUsername());
|
||||
|
||||
Reference in New Issue
Block a user