public static void SaveUser(AuthData user) { if (rememberUser) { Settings.Default.Email = Cipher.Encrypt(user.GetEmail()); Settings.Default.Password = Cipher.Encrypt(user.GetPassword()); Settings.Default.Save(); } }
public static StringContent Create(AuthData user) { string myContent = JsonConvert.SerializeObject(new { email = user.GetEmail(), password = user.GetPassword(), }); return(new StringContent(myContent, Encoding.UTF8, "application/json")); }