Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- IEnumerator PostLoginAccount (string username, string password)
- {
- string postUrl = GET_USER_URL + "username=" + WWW.EscapeURL (username) + "&password=" +
- WWW.EscapeURL(Crypto.Encrypt(password));
- WWW hsPost = new WWW (postUrl);
- yield return hsPost;
- if (hsPost.error != null)
- {
- Debug.Log ("Error: " + hsPost.error);
- }
- else
- {
- if (hsPost.text.Contains ("Verified"))
- {
- Debug.Log ("Successful login");
- }
- else
- {
- Debug.Log (hsPost.text);
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement