Changeset 5111 in josm
- Timestamp:
- 2012-03-21T23:15:32+01:00 (13 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r4932 r5111 38 38 import org.openstreetmap.josm.io.OsmApi; 39 39 import org.openstreetmap.josm.tools.ImageProvider; 40 import org.openstreetmap.josm.tools.Utils; 40 41 import org.openstreetmap.josm.tools.WindowGeometry; 41 42 … … 44 45 static public CredentialDialog getOsmApiCredentialDialog(String username, String password, String host, String saveUsernameAndPasswordCheckboxText) { 45 46 CredentialDialog dialog = new CredentialDialog(saveUsernameAndPasswordCheckboxText); 46 if (OsmApi.getOsmApi().getHost().equals(host)) {47 if (Utils.equal(OsmApi.getOsmApi().getHost(), host)) { 47 48 dialog.prepareForOsmApiCredentials(username, password); 48 49 } else { -
trunk/src/org/openstreetmap/josm/io/auth/CredentialsManager.java
r4690 r5111 92 92 @Override 93 93 public void store(RequestorType requestorType, String host, PasswordAuthentication credentials) throws CredentialsAgentException { 94 if (requestorType == RequestorType.SERVER && OsmApi.getOsmApi().getHost().equals(host)) {94 if (requestorType == RequestorType.SERVER && Utils.equal(OsmApi.getOsmApi().getHost(), host)) { 95 95 String username = credentials.getUserName(); 96 96 if(username != null && !username.trim().isEmpty()) { -
trunk/src/org/openstreetmap/josm/io/auth/JosmPreferencesCredentialAgent.java
r4692 r5111 15 15 import org.openstreetmap.josm.gui.widgets.HtmlPanel; 16 16 import org.openstreetmap.josm.io.OsmApi; 17 import org.openstreetmap.josm.tools.Utils; 17 18 18 19 /** … … 34 35 switch(requestorType) { 35 36 case SERVER: 36 if (OsmApi.getOsmApi().getHost().equals(host)) {37 if (Utils.equal(OsmApi.getOsmApi().getHost(), host)) { 37 38 user = Main.pref.get("osm-server.username", null); 38 39 password = Main.pref.get("osm-server.password", null); … … 66 67 switch(requestorType) { 67 68 case SERVER: 68 if (OsmApi.getOsmApi().getHost().equals(host)) {69 if (Utils.equal(OsmApi.getOsmApi().getHost(), host)) { 69 70 Main.pref.put("osm-server.username", credentials.getUserName()); 70 71 if (credentials.getPassword() == null) {
Note:
See TracChangeset
for help on using the changeset viewer.