From c22688421066a358b1980f4399f421000febdaac Mon Sep 17 00:00:00 2001 From: Vitaly Takmazov Date: Tue, 25 Dec 2018 10:37:21 +0300 Subject: PDKeychainBindingsController -> SAMKeychain --- Juick/APIClient.m | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'Juick/APIClient.m') diff --git a/Juick/APIClient.m b/Juick/APIClient.m index 3c91173..b812057 100644 --- a/Juick/APIClient.m +++ b/Juick/APIClient.m @@ -6,7 +6,6 @@ // Copyright © 2016 com.juick. All rights reserved. // #import "APIClient.h" -#import "PDKeychainBindings.h" #import "Message.h" #import "Chat.h" @@ -32,9 +31,9 @@ self.manager = [[AFHTTPSessionManager alloc] initWithBaseURL:[NSURL URLWithString:baseURLString]]; self.manager.requestSerializer = [AFJSONRequestSerializer new]; [self.manager.requestSerializer setCachePolicy:NSURLRequestReloadIgnoringLocalCacheData]; - NSString *username = [[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.username"]; + NSString *username = [SAMKeychain passwordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.username"]; if (username) { - [self.manager.requestSerializer setAuthorizationHeaderFieldWithUsername:username password:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.password"]]; + [self.manager.requestSerializer setAuthorizationHeaderFieldWithUsername:username password:[SAMKeychain passwordForService:[[NSBundle mainBundle] bundleIdentifier] account:@"com.juick.password"]]; } self.backgroundQueue = [NSOperationQueue new]; self.dateFormatter = [[NSDateFormatter alloc] init]; -- cgit v1.2.3