summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m5
1 files changed, 5 insertions, 0 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index 5f76145..4fa1f92 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -32,6 +32,11 @@
[[UIToolbar appearance] setTintColor:[ColorScheme linkColor]];
[UIApplication sharedApplication].statusBarStyle = UIStatusBarStyleDefault;
+ if ([[NSUserDefaults standardUserDefaults] objectForKey:@"FirstRun"] == nil) {
+ [[PDKeychainBindings sharedKeychainBindings] setObject:nil forKey:@"com.juick.username"];
+ [[PDKeychainBindings sharedKeychainBindings] setObject:nil forKey:@"com.juick.password"];
+ [[NSUserDefaults standardUserDefaults] setObject:@"1" forKey:@"FirstRun"];
+ }
[self registerForRemoteNotifications];
NSDictionary *userInfo = launchOptions[UIApplicationLaunchOptionsRemoteNotificationKey];