Panagiotis Triantafyllou

fixed verifyTicket

...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library' ...@@ -2,7 +2,7 @@ apply plugin: 'com.android.library'
2 2
3 ext { 3 ext {
4 PUBLISH_GROUP_ID = 'ly.warp' 4 PUBLISH_GROUP_ID = 'ly.warp'
5 - PUBLISH_VERSION = '4.5.5.4r35' 5 + PUBLISH_VERSION = '4.5.5.4r36'
6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk' 6 PUBLISH_ARTIFACT_ID = 'warply-android-sdk'
7 } 7 }
8 8
......
...@@ -1060,8 +1060,8 @@ public class WarplyManager { ...@@ -1060,8 +1060,8 @@ public class WarplyManager {
1060 e.printStackTrace(); 1060 e.printStackTrace();
1061 } 1061 }
1062 1062
1063 - if (jobjLoginResponse != null && jobjLoginResponse.has("status") && jobjLoginResponse.optString("status", "2").equals("1")) { 1063 + if (jobjLoginResponse != null && jobjLoginResponse.has("result") && jobjLoginResponse.optString("result", "2").equals("1")) {
1064 - JSONObject tokens = jobjLoginResponse.optJSONObject("result"); 1064 + JSONObject tokens = jobjLoginResponse.optJSONObject("tokens");
1065 if (tokens != null) { 1065 if (tokens != null) {
1066 WarplyDBHelper.getInstance(Warply.getWarplyContext()).saveClientAccess( 1066 WarplyDBHelper.getInstance(Warply.getWarplyContext()).saveClientAccess(
1067 tokens.optString("client_id", ""), 1067 tokens.optString("client_id", ""),
......