Explorar o código

fix e2e-token

marinofaggiana %!s(int64=5) %!d(string=hai) anos
pai
achega
5c6263177e
Modificáronse 1 ficheiros con 2 adicións e 2 borrados
  1. 2 2
      iOSClient/Library/OCCommunicationLib/OCCommunication.m

+ 2 - 2
iOSClient/Library/OCCommunicationLib/OCCommunication.m

@@ -2596,9 +2596,9 @@
             
             if (statusCode == kOCUserProfileAPISuccessful) {
                 
-                if ([data valueForKey:@"token"] && ![[data valueForKey:@"token"] isKindOfClass:[NSNull class]]) {
+                if ([data valueForKey:@"e2e-token"] && ![[data valueForKey:@"e2e-token"] isKindOfClass:[NSNull class]]) {
                     
-                    token = [data valueForKey:@"token"];
+                    token = [data valueForKey:@"e2e-token"];
                     successRequest(response, token, request.redirectedServer);
                     
                 } else {