From 0b2cab2395d57582a0b9ebc7c7e818b755567105 Mon Sep 17 00:00:00 2001 From: cyBerta Date: Sun, 18 Feb 2018 21:30:59 +0100 Subject: #8852 fix api urls for signup and logout --- app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java b/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java index 76275d9d..b93abaeb 100644 --- a/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java +++ b/app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java @@ -298,7 +298,7 @@ public abstract class ProviderApiManagerBase { BigInteger password_verifier = client.calculateV(username, password, salt); - JSONObject api_result = sendNewUserDataToSRPServer(provider.getApiUrlString(), username, new BigInteger(1, salt).toString(16), password_verifier.toString(16), okHttpClient); + JSONObject api_result = sendNewUserDataToSRPServer(provider.getApiUrlWithVersion(), username, new BigInteger(1, salt).toString(16), password_verifier.toString(16), okHttpClient); Bundle result = new Bundle(); if (api_result.has(ERRORS) || api_result.has(BACKEND_ERROR_KEY)) @@ -820,7 +820,7 @@ public abstract class ProviderApiManagerBase { return false; } - String deleteUrl = provider.getApiUrlString() + "/logout"; + String deleteUrl = provider.getApiUrlWithVersion() + "/logout"; if (ProviderApiConnector.delete(okHttpClient, deleteUrl)) { LeapSRPSession.setToken(""); -- cgit v1.2.3