summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorGravatar Vitaly Takmazov2018-12-25 10:19:50 +0300
committerGravatar Vitaly Takmazov2018-12-25 10:19:50 +0300
commitda64667f6ef19bfeedb8b4b40d875fcd10d4ef6c (patch)
treef7924093880ca9291818558feb1f1a0dad2048b3
parentd019c298dbefa3f5787044f7cd825932f4b583fe (diff)
Trying to not request without password
-rw-r--r--Juick/APIClient.m4
-rw-r--r--Juick/Supporting Files/Juick-Info.plist2
-rw-r--r--JuickPush/Info.plist2
3 files changed, 6 insertions, 2 deletions
diff --git a/Juick/APIClient.m b/Juick/APIClient.m
index 6f69e9d..3c91173 100644
--- a/Juick/APIClient.m
+++ b/Juick/APIClient.m
@@ -32,6 +32,10 @@
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"];
+ if (username) {
+ [self.manager.requestSerializer setAuthorizationHeaderFieldWithUsername:username password:[[PDKeychainBindings sharedKeychainBindings] stringForKey:@"com.juick.password"]];
+ }
self.backgroundQueue = [NSOperationQueue new];
self.dateFormatter = [[NSDateFormatter alloc] init];
self.dateFormatter.dateFormat = @"yyyy-MM-dd HH:mm:ss";
diff --git a/Juick/Supporting Files/Juick-Info.plist b/Juick/Supporting Files/Juick-Info.plist
index 9f83b9e..3a1374d 100644
--- a/Juick/Supporting Files/Juick-Info.plist
+++ b/Juick/Supporting Files/Juick-Info.plist
@@ -21,7 +21,7 @@
<key>CFBundleSignature</key>
<string>????</string>
<key>CFBundleVersion</key>
- <string>94</string>
+ <string>95</string>
<key>ITSAppUsesNonExemptEncryption</key>
<false/>
<key>LSApplicationCategoryType</key>
diff --git a/JuickPush/Info.plist b/JuickPush/Info.plist
index 327fc7b..22d71a4 100644
--- a/JuickPush/Info.plist
+++ b/JuickPush/Info.plist
@@ -19,7 +19,7 @@
<key>CFBundleShortVersionString</key>
<string>1.0</string>
<key>CFBundleVersion</key>
- <string>94</string>
+ <string>95</string>
<key>NSExtension</key>
<dict>
<key>NSExtensionPointIdentifier</key>