mirror of
https://gitee.com/openharmony/account_os_account
synced 2024-11-23 10:10:11 +00:00
!2221 PC创建100用户, 首次创建100用户判断条件调整
Merge pull request !2221 from 周士淼/fix_1031_pc100
This commit is contained in:
commit
bf17ebd07f
@ -496,7 +496,9 @@ ErrCode IInnerOsAccountManager::CreateOsAccount(const std::string &localName, co
|
||||
ACCOUNT_LOGE("QueryOsAccountById error, errCode %{public}d.", code);
|
||||
return code;
|
||||
}
|
||||
if (accountInfoOld.GetShortName().empty()) {
|
||||
DomainAccountInfo domainAccountInfo;
|
||||
accountInfoOld.GetDomainInfo(domainAccountInfo);
|
||||
if (accountInfoOld.GetShortName().empty() && domainAccountInfo.accountName_.empty()) {
|
||||
accountInfoOld.SetType(type);
|
||||
accountInfoOld.SetLocalName(localName);
|
||||
accountInfoOld.SetShortName(shortName);
|
||||
|
Loading…
Reference in New Issue
Block a user