diff options
author | Parménides GV <parmegv@sdf.org> | 2014-11-22 11:44:05 +0100 |
---|---|---|
committer | Parménides GV <parmegv@sdf.org> | 2014-11-22 11:44:05 +0100 |
commit | 809c95e41458de62cee3752dd695588ef2039a5f (patch) | |
tree | 72787ff54b2e435ed960e801069adf63efe669bc /app/src/main/java/se/leap/bitmaskclient/Dashboard.java | |
parent | 8f37e6f940ae4034458a1d9d39dc5ffe4ff70848 (diff) |
Ask to log in to update certificate if needed.
ProviderAPI from debug build uses an invalid certificate the first time
it tries to download a new cert, just to test this.
Diffstat (limited to 'app/src/main/java/se/leap/bitmaskclient/Dashboard.java')
-rw-r--r-- | app/src/main/java/se/leap/bitmaskclient/Dashboard.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java index 49614a6f..7d00ca77 100644 --- a/app/src/main/java/se/leap/bitmaskclient/Dashboard.java +++ b/app/src/main/java/se/leap/bitmaskclient/Dashboard.java @@ -225,7 +225,7 @@ public class Dashboard extends Activity implements LogInDialog.LogInDialogInterf if(provider_json_string.isEmpty() == false) { provider_json = new JSONObject(provider_json_string); JSONObject service_description = provider_json.getJSONObject(Provider.SERVICE); - boolean authed_eip = preferences.getBoolean(EIP.AUTHED_EIP, false); + boolean authed_eip = !LeapSRPSession.getToken().isEmpty(); boolean allow_registered_eip = service_description.getBoolean(Provider.ALLOW_REGISTRATION); preferences.edit().putBoolean(EIP.ALLOWED_REGISTERED, allow_registered_eip); |