summaryrefslogtreecommitdiff
path: root/app/src/main
diff options
context:
space:
mode:
authorcyBerta <cyberta@riseup.net>2018-02-18 21:30:59 +0100
committercyBerta <cyberta@riseup.net>2018-02-18 21:30:59 +0100
commit0b2cab2395d57582a0b9ebc7c7e818b755567105 (patch)
treeb14a2fcdb104bc4701d5309d91e025d8154a0d05 /app/src/main
parent6815c6521e633fa3798c7ef37b405bdb60fa1ff5 (diff)
#8852 fix api urls for signup and logout
Diffstat (limited to 'app/src/main')
-rw-r--r--app/src/main/java/se/leap/bitmaskclient/ProviderApiManagerBase.java4
1 files 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("");