mirror of
https://github.com/didi/KnowStreaming.git
synced 2025-12-24 11:52:08 +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());
|
||||
@@ -105,4 +105,4 @@ public class BaseSessionSignOn extends AbstractSingleSignOn {
|
||||
response.setStatus(AbstractSingleSignOn.REDIRECT_CODE);
|
||||
response.addHeader(AbstractSingleSignOn.HEADER_REDIRECT_KEY, "");
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user