Ignore:
Timestamp:
2011-12-21T23:12:59+01:00 (12 years ago)
Author:
stoecker
Message:

see #7086 - fix passing auth information to wrong server

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/org/openstreetmap/josm/gui/preferences/server/ProxyPreferencesPanel.java

    r4246 r4690  
    325325        CredentialsAgent cm = CredentialsManager.getInstance();
    326326        try {
    327             PasswordAuthentication pa = cm.lookup(RequestorType.PROXY);
     327            PasswordAuthentication pa = cm.lookup(RequestorType.PROXY, tfProxyHttpHost.getText());
    328328            if (pa == null) {
    329329                tfProxyHttpUser.setText("");
     
    404404                    tfProxyHttpPassword.getPassword()
    405405            );
    406             cm.store(RequestorType.PROXY, pa);
     406            cm.store(RequestorType.PROXY, tfProxyHttpHost.getText(), pa);
    407407        } catch(CredentialsAgentException e) {
    408408            e.printStackTrace();
Note: See TracChangeset for help on using the changeset viewer.