public Task <IdentityResult> ChangeUserPasswordAsync(User entity, string oldPassword, string newPassword) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.ChangePasswordAsync(entity, oldPassword, newPassword)); }
public async Task <IdentityResult> UpdateUserAsync(User entity, string password) { entity.CheckArgumentIsNull(nameof(entity)); if (!String.IsNullOrEmpty(password)) { await RemoveUserPasswordAsync(entity); await SetUserPasswordAsync(entity, password); } return(await UpdateUserInfoAsync(entity)); }
public Task <IdentityResult> RemoveUserPasswordAsync(User entity) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.RemovePasswordAsync(entity)); }
public Task <IdentityResult> SetUserPasswordAsync(User entity, string password) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.AddPasswordAsync(entity, password)); }
public Task <IdentityResult> UpdateUserInfoAsync(User entity) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.UpdateAsync(entity)); }
public Task <IdentityResult> DeleteUserAsync(User entity) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.DeleteAsync(entity)); }
public Task <IdentityResult> CreateUserAsync(User entity, string password) { entity.CheckArgumentIsNull(nameof(entity)); return(_userManager.CreateAsync(entity, password)); }