Skip to content

Instantly share code, notes, and snippets.

@nickjs
Created September 8, 2008 05:24
Show Gist options
  • Save nickjs/9379 to your computer and use it in GitHub Desktop.
Save nickjs/9379 to your computer and use it in GitHub Desktop.
+ (void)checkSignIn:(CPString)email password:(CPString)password delegate:(id)aDelegate
{
var request = [CPURLRequest requestWithURL:"http://localhost:3000/authenticate"];
[request setHTTPMethod:"POST"];
[request setHTTPBody:"{'email':'"+email+"','password':'"+password+"'}"];
var authenticate = [CPURLConnection connectionWithRequest:request delegate:aDelegate];
[authenticate start];
console.log("working")
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment