Ignore:
Timestamp:
2009-08-12T11:52:42+02:00 (15 years ago)
Author:
Gubaer
Message:

fixed #3250

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/io/OsmConnection.java

    r1955 r1962  
    2525import org.openstreetmap.josm.tools.Base64;
    2626import org.openstreetmap.josm.tools.GBC;
    27 import org.openstreetmap.josm.io.CredentialsManager.CMException;
    2827
    2928/**
     
    115114                auth = credentialsManager.lookupUsername() + ":" + credentialsManager.lookupPassword();
    116115            }
    117         } catch (CMException e) {
     116        } catch (CredentialsManager.CMException e) {
    118117            auth = ":";
    119118        }
     
    237236                            "WARNING: The password is stored in plain text in the preferences file.<br>" +
    238237                            "The password is transferred in plain text to the server, encoded in the URL.<br>" +
    239                             "<b>Do not use a valuable Password.</b></html>"));
     238                    "<b>Do not use a valuable Password.</b></html>"));
    240239                    warning.setFont(warning.getFont().deriveFont(Font.ITALIC));
    241240                    panel.add(warning, GBC.eop().fill(GBC.HORIZONTAL));
     
    244243                    String newUsername = osmDataUsername.getText();
    245244                    String newPassword = String.valueOf(osmDataPassword.getPassword());
    246                     if (!oldUsername.equals(newUsername))
     245                    if (!oldUsername.equals(newUsername)) {
    247246                        storeUsername(newUsername);
    248                     if (!oldPassword.equals(newPassword))
     247                    }
     248                    if (!oldPassword.equals(newPassword)) {
    249249                        storePassword(newPassword);
     250                    }
    250251                }
    251252            };
Note: See TracChangeset for help on using the changeset viewer.