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
parent
commit
4d4157b88b
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
  1. 2
      modules/identity/src/Volo.Abp.Identity.Application/Volo/Abp/Identity/IdentityUserAppService.cs

2
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)
{

Loading…
Cancel
Save