Skip to content

Commit

Permalink
Fix #5558.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Dec 14, 2010
1 parent 2387926 commit 5878bc4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions source/ch/cyberduck/core/Protocol.java
Expand Up @@ -202,6 +202,9 @@ public boolean isEncodingConfigurable() {

@Override
public boolean validate(Credentials credentials) {
if(credentials.isPublicKeyAuthentication()) {
return StringUtils.isNotBlank(credentials.getUsername());
}
return FTP.validate(credentials);
}
};
Expand Down

0 comments on commit 5878bc4

Please sign in to comment.