Fix 2887947: Exchange server with a username hidden field

git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@796 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
mguessan 2009-10-28 14:55:48 +00:00
parent 14d22a8ef4
commit 73bc2636a9
1 changed files with 3 additions and 1 deletions

View File

@ -359,7 +359,9 @@ public class ExchangeSession {
String type = ((TagNode) input).getAttributeByName("type");
String name = ((TagNode) input).getAttributeByName("name");
String value = ((TagNode) input).getAttributeByName("value");
if ("hidden".equalsIgnoreCase(type) && name != null && value != null) {
if ("hidden".equalsIgnoreCase(type) && name != null && value != null
// found a server with a username hidden field
&& !"username".equals(name)) {
logonMethod.addParameter(name, value);
}
// custom login form