Changeset 6885 in josm
- Timestamp:
- 2014-02-26T23:16:08+01:00 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/io/CredentialDialog.java
r6340 r6885 248 248 return cbSaveCredentials.isSelected(); 249 249 } 250 251 protected final void updateWarningLabel(String url) { 252 boolean https = url != null && url.startsWith("https"); 253 if (https) { 254 lblWarning.setText(null); 255 } else { 256 lblWarning.setText(tr("Warning: The password is transferred unencrypted.")); 257 } 258 lblWarning.setVisible(!https); 259 } 250 260 } 251 261 … … 257 267 tfUserName.setToolTipText(tr("Please enter the user name of your OSM account")); 258 268 tfPassword.setToolTipText(tr("Please enter the password of your OSM account")); 269 String apiUrl = OsmApi.getOsmApi().getBaseUrl(); 259 270 lblHeading.setText( 260 271 "<html>" + tr("Authenticating at the OSM API ''{0}'' failed. Please enter a valid username and a valid password.", 261 OsmApi.getOsmApi().getBaseUrl()) + "</html>");262 lblWarning.setText(tr("Warning: The password is transferred unencrypted."));272 apiUrl) + "</html>"); 273 updateWarningLabel(apiUrl); 263 274 } 264 275 … … 281 292 "<html>" + tr("Authenticating at the host ''{0}'' failed. Please enter a valid username and a valid password.", 282 293 host) + "</html>"); 283 lblWarning.setText(tr("Warning: The password is transferred unencrypted."));294 updateWarningLabel(host); 284 295 } 285 296
Note:
See TracChangeset
for help on using the changeset viewer.