summaryrefslogtreecommitdiff
path: root/Juick/User.m
diff options
context:
space:
mode:
Diffstat (limited to 'Juick/User.m')
-rw-r--r--Juick/User.m3
1 files changed, 2 insertions, 1 deletions
diff --git a/Juick/User.m b/Juick/User.m
index 6f1678a..e1bef3a 100644
--- a/Juick/User.m
+++ b/Juick/User.m
@@ -36,6 +36,7 @@
if (operation.HTTPRequestOperation.response.statusCode == 400) {
callback(YES);
} else {
+ [manager.HTTPClient setAuthorizationHeaderWithUsername:nil password:nil];
callback(NO);
}
}];
@@ -59,7 +60,7 @@
[operation setCompletionBlockWithSuccess:^(RKObjectRequestOperation *operation, RKMappingResult *mappingResult) {
callback([[mappingResult array] firstObject]);
} failure:^(RKObjectRequestOperation *operation, NSError *error) {
- NSLog(@"REST Error: %@", error);
+ callback(nil);
}];
[operation start];
}