in app/Data/AppUserStore.cs [142:157]
public async Task<IdentityResult> UpdateAsync(AppUser user, CancellationToken cancellationToken)
{
cancellationToken.ThrowIfCancellationRequested();
if (user == null) throw new ArgumentNullException(nameof(user));
try
{
_context.Update(user);
await _context.SaveChangesAsync();
return IdentityResult.Success;
}
catch(Exception ex)
{
return IdentityResult.Failed(new IdentityError { Description = $"Could not update user {ex.Message}." });
}
}