Ejemplo n.º 1
0
 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();
     }
 }
Ejemplo n.º 2
0
        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"));
        }