| | |
| | | return result; |
| | | } |
| | | |
| | | public async Task<Guid> CreateAccount(CreateAccountInput input, bool isSend, bool isAdminCreate = false, string password = null) |
| | | public async Task<Guid> CreateAccount(CreateAccountInput input, bool isSend, bool isAdminCreate = false) |
| | | { |
| | | if (input.ClientId == LifePaymentConstant.ClientId.Back) |
| | | { |
| | |
| | | CheckExtensions.IfTrueThrowUserFriendlyException(any, |
| | | CustomeErrorMessage.PhoneNumberRepeatSaveFail); |
| | | |
| | | password ??= GlobalRandom.GetRandomPassword(); |
| | | /// input.Password ??= GlobalRandom.GetRandomPassword(); |
| | | |
| | | CheckExtensions.IfTrueThrowUserFriendlyException(string.IsNullOrEmpty(input.Password), |
| | | "请输入密码"); |
| | | var res = await _identityUserService.CreateAsync(new IdentityUserCreateDto |
| | | { |
| | | Name = input.Name, |
| | |
| | | UserName = input.UserName, |
| | | RoleNames = input.RoleNames, |
| | | ClientId = input.ClientId, |
| | | Password = password, |
| | | Password = input.Password, |
| | | }); |
| | | var user = await _userRepository.InsertAsync(new User |
| | | { |