Changeset 6990 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/server/AuthenticationPreferencesPanel.java
- Timestamp:
- 2014-04-19T00:36:43+02:00 (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/AuthenticationPreferencesPanel.java
r6890 r6990 115 115 public final void initFromPreferences() { 116 116 String authMethod = Main.pref.get("osm-server.auth-method", "basic"); 117 if (authMethod .equals("basic")) {117 if ("basic".equals(authMethod)) { 118 118 rbBasicAuthentication.setSelected(true); 119 } else if (authMethod .equals("oauth")) {119 } else if ("oauth".equals(authMethod)) { 120 120 rbOAuth.setSelected(true); 121 121 } else { … … 140 140 } 141 141 Main.pref.put("osm-server.auth-method", authMethod); 142 if (authMethod .equals("basic")) {142 if ("basic".equals(authMethod)) { 143 143 // save username and password and clear the OAuth token 144 144 pnlBasicAuthPreferences.saveToPreferences(); 145 145 OAuthAccessTokenHolder.getInstance().clear(); 146 146 OAuthAccessTokenHolder.getInstance().save(Main.pref, CredentialsManager.getInstance()); 147 } else if (authMethod .equals("oauth")) {147 } else if ("oauth".equals(authMethod)) { 148 148 // clear the password in the preferences 149 149 pnlBasicAuthPreferences.clearPassword();
Note:
See TracChangeset
for help on using the changeset viewer.
