public static async void AddAccount(Account account, string pass) { account.PasswordKey = CreatePassKey(); await PassUtils.SetPass(account.PasswordKey, pass); AppDB.Insert(account); }
public static async Task AddUser(User user, string pass) { user.PasswordKey = CreatePassKey(); await PassUtils.SetPass(user.PasswordKey, pass); AppDB.Insert(user); }
public static async void UpdateAccount(Account account, string pass) { await PassUtils.ChangePass(account.PasswordKey, pass); AppDB.Update(account); }