summaryrefslogtreecommitdiff
path: root/Juick/ViewControllers/LoginViewController.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/ViewControllers/LoginViewController.m')
-rw-r--r--Juick/ViewControllers/LoginViewController.m3
1 files changed, 3 insertions, 0 deletions
diff --git a/Juick/ViewControllers/LoginViewController.m b/Juick/ViewControllers/LoginViewController.m
index 1894b1c..898e59c 100644
--- a/Juick/ViewControllers/LoginViewController.m
+++ b/Juick/ViewControllers/LoginViewController.m
@@ -11,6 +11,8 @@
#import "AppDelegate.h"
#import "APIClient.h"
+NSString * const UserSignedInNotificationName = @"UserSignedIn";
+
@interface LoginViewController()
@property (nonatomic, assign) int paddingValue;
@end
@@ -57,6 +59,7 @@
- (void) doneSignIn {
[[APIClient sharedClient] authenticate:^(User *user, NSError *error) {
if (user) {
+ [[NSNotificationCenter defaultCenter] postNotificationName:UserSignedInNotificationName object:user];
[[AppDelegate shared] registerForRemoteNotifications];
CATransition* transition = [CATransition animation];
transition.duration = 0.3;