Skip to content

Commit

Permalink
Remove CHK kOCErrorServerUnauthorized
Browse files Browse the repository at this point in the history
  • Loading branch information
marinofaggiana committed Aug 31, 2017
1 parent f9e7813 commit 24d5639
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions iOSClient/Networking/CCNetworking.m
Original file line number Diff line number Diff line change
Expand Up @@ -398,12 +398,6 @@ - (void)URLSession:(NSURLSession *)session task:(NSURLSessionTask *)task didComp
else
errorCode = error.code;

#ifndef EXTENSION
// Unauthorized
if (errorCode == kOCErrorServerUnauthorized)
[app openLoginView:self loginType:loginModifyPasswordUser];
#endif

// Request trusted certificated
if (errorCode == NSURLErrorServerCertificateUntrusted)
[[CCCertificate sharedManager] presentViewControllerCertificateWithTitle:[error localizedDescription] viewController:(UIViewController *)self.delegate delegate:self];
Expand Down

0 comments on commit 24d5639

Please sign in to comment.