diff options
author | Vitaly Takmazov | 2018-04-01 22:21:20 +0300 |
---|---|---|
committer | Vitaly Takmazov | 2018-04-01 22:21:20 +0300 |
commit | 677397be225a3b34f4b26e573fd067f73f9eb75c (patch) | |
tree | 0cfc86aa5e344d47203e7724fcf5b3c16635074d /Juick/AppDelegate.m | |
parent | f2ad6e8f2bbca27cb9c4777adb581d169c77057b (diff) |
Fix login
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r-- | Juick/AppDelegate.m | 5 |
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]; |