summaryrefslogtreecommitdiff
path: root/Juick/AppDelegate.m
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-12-25 10:37:21 +0300
committerGravatar Vitaly Takmazov2018-12-25 10:44:07 +0300
commitc22688421066a358b1980f4399f421000febdaac (patch)
treef48ac07d5e95b79e928cba1dc89f55e2517f07ed /Juick/AppDelegate.m
parentda64667f6ef19bfeedb8b4b40d875fcd10d4ef6c (diff)
PDKeychainBindingsController -> SAMKeychain
Diffstat (limited to 'Juick/AppDelegate.m')
-rw-r--r--Juick/AppDelegate.m5
1 files changed, 2 insertions, 3 deletions
diff --git a/Juick/AppDelegate.m b/Juick/AppDelegate.m
index a07d0e3..c3a2f77 100644
--- a/Juick/AppDelegate.m
+++ b/Juick/AppDelegate.m
@@ -40,9 +40,8 @@
[self parseNotificationPayload:userInfo];
} else {
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"];
+ [SAMKeychain deletePasswordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.username"];
+ [SAMKeychain deletePasswordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.username"];
}
}
return YES;