Advertisement
Guest User

Untitled

a guest
Jan 30th, 2017
104
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. IEnumerator PostLoginAccount (string username, string password)
  2. {
  3. string postUrl = GET_USER_URL + "username=" + WWW.EscapeURL (username) + "&password=" +
  4. WWW.EscapeURL(Crypto.Encrypt(password));
  5.  
  6. WWW hsPost = new WWW (postUrl);
  7.  
  8. yield return hsPost;
  9.  
  10. if (hsPost.error != null)
  11. {
  12. Debug.Log ("Error: " + hsPost.error);
  13. }
  14. else
  15. {
  16. if (hsPost.text.Contains ("Verified"))
  17. {
  18. Debug.Log ("Successful login");
  19. }
  20. else
  21. {
  22. Debug.Log (hsPost.text);
  23. }
  24. }
  25. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement