Changeset 4690 in josm for trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
- Timestamp:
- 2011-12-21T23:12:59+01:00 (14 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/preferences/server/BasicAuthenticationPreferencesPanel.java
r4263 r4690 23 23 import org.openstreetmap.josm.io.auth.CredentialsManager; 24 24 import org.openstreetmap.josm.io.auth.JosmPreferencesCredentialAgent; 25 import org.openstreetmap.josm.io.OsmApi; 25 26 26 27 /** … … 94 95 decorationPanel.removeAll(); 95 96 decorationPanel.add(cm.getPreferencesDecorationPanel(), BorderLayout.CENTER); 96 PasswordAuthentication pa = cm.lookup(RequestorType.SERVER); 97 PasswordAuthentication pa = cm.lookup(RequestorType.SERVER, OsmApi.getOsmApi().getHost()); 97 98 if (pa == null) { 98 99 tfOsmUserName.setText(""); … … 118 119 tfOsmPassword.getPassword() 119 120 ); 120 cm.store(RequestorType.SERVER, pa); 121 cm.store(RequestorType.SERVER, OsmApi.getOsmApi().getHost(), pa); 121 122 } catch(CredentialsAgentException e) { 122 123 e.printStackTrace();
Note:
See TracChangeset
for help on using the changeset viewer.
