Skip to content

Instantly share code, notes, and snippets.

@funkyboy
Created April 1, 2014 13:59
Show Gist options
  • Select an option

  • Save funkyboy/9914530 to your computer and use it in GitHub Desktop.

Select an option

Save funkyboy/9914530 to your computer and use it in GitHub Desktop.
- (IBAction) login {
NSLog(@"login");
BAAClient *client = [BAAClient sharedClient];
[client authenticateUser:self.loginUsernameField.text
password:self.loginPasswordField.text
completion:^(BOOL success, NSError *error) {
if (success) {
NSLog(@"user authenticated %@", client.currentUser);
[self dismissViewControllerAnimated:YES completion:nil];
} else {
NSLog(@"error in logging in %@", error);
}
}];
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment