summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-04-01 22:21:20 +0300
committerGravatar Vitaly Takmazov2018-04-01 22:21:20 +0300
commit677397be225a3b34f4b26e573fd067f73f9eb75c (patch)
tree0cfc86aa5e344d47203e7724fcf5b3c16635074d /Juick/AppDelegate.m
parentf2ad6e8f2bbca27cb9c4777adb581d169c77057b (diff)
Fix login
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];