mirror of
https://github.com/moparisthebest/davmail
synced 2024-12-14 11:42:23 -05:00
Force flags parameter to 4 in Form Based Authentication
git-svn-id: http://svn.code.sf.net/p/davmail/code/trunk@874 3d1905a2-6b24-0410-a738-b14d5a86fcbd
This commit is contained in:
parent
f32ce8ea55
commit
8e55622a52
@ -465,9 +465,12 @@ public class ExchangeSession {
|
|||||||
// make sure username and password fields are empty
|
// make sure username and password fields are empty
|
||||||
((PostMethod) logonMethod).removeParameter(userNameInput);
|
((PostMethod) logonMethod).removeParameter(userNameInput);
|
||||||
((PostMethod) logonMethod).removeParameter(passwordInput);
|
((PostMethod) logonMethod).removeParameter(passwordInput);
|
||||||
|
((PostMethod) logonMethod).removeParameter("trusted");
|
||||||
|
((PostMethod) logonMethod).removeParameter("flags");
|
||||||
((PostMethod) logonMethod).addParameter(userNameInput, userName);
|
((PostMethod) logonMethod).addParameter(userNameInput, userName);
|
||||||
((PostMethod) logonMethod).addParameter(passwordInput, password);
|
((PostMethod) logonMethod).addParameter(passwordInput, password);
|
||||||
((PostMethod) logonMethod).addParameter("trusted", "4");
|
((PostMethod) logonMethod).addParameter("trusted", "4");
|
||||||
|
((PostMethod) logonMethod).addParameter("flags", "4");
|
||||||
logonMethod = DavGatewayHttpClientFacade.executeFollowRedirects(httpClient, logonMethod);
|
logonMethod = DavGatewayHttpClientFacade.executeFollowRedirects(httpClient, logonMethod);
|
||||||
|
|
||||||
// test form based authentication
|
// test form based authentication
|
||||||
|
Loading…
Reference in New Issue
Block a user