Created
October 8, 2013 03:25
-
-
Save peerasak-u/6879004 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| - (void)logInWithUsername:(NSString *)username password:(NSString *)password | |
| { | |
| NSURL *url = [NSURL URLWithString:[NSString stringWithFormat:@"http://fireoneone.com/dummy_login.php"]]; | |
| request = [ASIFormDataRequest requestWithURL:url]; | |
| [request setRequestMethod:@"POST"]; | |
| [request setPostValue:usernameInput forKey:@"username"]; | |
| [request setPostValue:passwordOutput forKey:@"password"]; | |
| [request setDelegate:self]; | |
| [request startAsynchronous]; | |
| [request setDidFinishSelector:@selector(logInSuccessed:)]; | |
| [request setDidFailSelector:@selector(logInFailed:)]; | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment