Browse Source

fix e2e-token

marinofaggiana 5 năm trước cách đây
mục cha
commit
5c6263177e
1 tập tin đã thay đổi với 2 bổ sung2 xóa
  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 {