Browse Source
Merge pull request #7004 from abpframework/maliming/patch-identity
Update the entity after changing its properties.
pull/7005/head
liangshiwei
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityUserAppService.cs
|
|
|
@ -85,6 +85,7 @@ namespace Volo.Abp.Identity |
|
|
|
|
|
|
|
(await UserManager.CreateAsync(user, input.Password)).CheckErrors(); |
|
|
|
await UpdateUserByInput(user, input); |
|
|
|
(await UserManager.UpdateAsync(user)).CheckErrors(); |
|
|
|
|
|
|
|
await CurrentUnitOfWork.SaveChangesAsync(); |
|
|
|
|
|
|
|
@ -174,6 +175,7 @@ namespace Volo.Abp.Identity |
|
|
|
|
|
|
|
user.Name = input.Name; |
|
|
|
user.Surname = input.Surname; |
|
|
|
(await UserManager.UpdateAsync(user)).CheckErrors(); |
|
|
|
|
|
|
|
if (input.RoleNames != null) |
|
|
|
{ |
|
|
|
|