Changeset 3513 in josm for trunk/src/org/openstreetmap


Ignore:
Timestamp:
2010-09-04T15:52:04+02:00 (14 years ago)
Author:
bastiK
Message:

fixed #4259 - Authentication dialog appears several times while uploading a changeset

File:
1 edited

Legend:

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

    r3344 r3513  
    8585        /*
    8686         * Last request was successful and there was no credentials stored
    87          * in file. -> Try to recall credentials that have been entered
     87         * in file (or only the username is stored).
     88         * -> Try to recall credentials that have been entered
    8889         * manually in this session.
    8990         */
    90         if (!noSuccessWithLastResponse && credentials == null && memoryCredentialsCache.containsKey(requestorType)) {
     91        if (!noSuccessWithLastResponse && memoryCredentialsCache.containsKey(requestorType) &&
     92                (credentials == null || credentials.getPassword() == null || credentials.getPassword().length == 0)) {
    9193            PasswordAuthentication pa = memoryCredentialsCache.get(requestorType);
    9294            response.setUsername(pa.getUserName());
Note: See TracChangeset for help on using the changeset viewer.