public async Task UpdateAsync(IdentityUser user) { ThrowIfDisposed(); if (user == null) { throw new ArgumentNullException("user"); } await Task.Run(() => UsersDb.Update(user)); }
public Task SetEmailAsync(IdentityUser user, string email) { ThrowIfDisposed(); if (user == null) { throw new ArgumentNullException("user"); } user.Email = email; UsersDb.Update(user); return(Task.FromResult(0)); }
public Task SetEmailConfirmedAsync(IdentityUser user, bool confirmed) { ThrowIfDisposed(); if (user == null) { throw new ArgumentNullException("user"); } var account = UsersDb.IdentityAccounts.First(w => w.UserId == user.Id); account.IsApproved = confirmed; UsersDb.Update(account); return(Task.FromResult(0)); }
public Task SetPasswordHashAsync(IdentityUser user, string passwordHash) { ThrowIfDisposed(); if (user == null) { throw new ArgumentNullException("user"); } var account = UsersDb.IdentityAccounts.First(w => w.UserId == user.Id); account.Password = passwordHash; UsersDb.Update(account); return(Task.FromResult(0)); }
public void Update(tbl_Users url) { objDb.Update(url); }