diff options
Diffstat (limited to 'Juick/ViewControllers/LoginViewController.m')
-rw-r--r-- | Juick/ViewControllers/LoginViewController.m | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Juick/ViewControllers/LoginViewController.m b/Juick/ViewControllers/LoginViewController.m index f8cbcc8..de18286 100644 --- a/Juick/ViewControllers/LoginViewController.m +++ b/Juick/ViewControllers/LoginViewController.m @@ -56,8 +56,8 @@ } - (void) doneSignIn { - [[APIClient sharedClient] authenticate:^(BOOL success) { - if (success) { + [[APIClient sharedClient] authenticate:^(User *user, NSError *error) { + if (user) { [[AppDelegate shared] registerForRemoteNotifications]; CATransition* transition = [CATransition animation]; transition.duration = 0.3; @@ -67,7 +67,7 @@ [self.navigationController.view.layer addAnimation:transition forKey:kCATransition]; [self.navigationController dismissViewControllerAnimated:NO completion:nil]; } else { - [User throwUnableToLogin:self]; + [User throwUnableToLogin:self error:error]; } }]; } |