mirror of
https://github.com/didi/KnowStreaming.git
synced 2026-01-07 15:12:14 +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;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(ValidateUtils.isNull(accountResult) && authUserRegistration){
|
if((ValidateUtils.isNull(accountResult) || ValidateUtils.isNull(accountResult.getData())) && authUserRegistration){
|
||||||
//自动注册
|
//自动注册
|
||||||
AccountDO accountDO = new AccountDO();
|
AccountDO accountDO = new AccountDO();
|
||||||
accountDO.setUsername(dto.getUsername());
|
accountDO.setUsername(dto.getUsername());
|
||||||
|
|||||||
Reference in New Issue
Block a user