mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-08-21 06:33:18 +00:00
Monotone-Parent: 555ffbaeafab3a0a23649acb1714e47a78d35d81
Monotone-Revision: c7c2186348790bb64c08730ba255f908ac68cfa9 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2007-11-21T16:42:58 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -20,11 +20,13 @@ function onLoginClick(event) {
|
||||
var password = $("password").value;
|
||||
|
||||
if (userName.length > 0) {
|
||||
var url = ($("connectForm").getAttribute("action")
|
||||
+ "?userName=" + userName
|
||||
+ "&password=" + password);
|
||||
var url = $("connectForm").getAttribute("action");
|
||||
var parameters = ("userName=" + userName + "&password=" + password);
|
||||
document.cookie = "";
|
||||
triggerAjaxRequest(url, onLoginCallback);
|
||||
triggerAjaxRequest(url, onLoginCallback, null, parameters,
|
||||
{ "Content-type": "application/x-www-form-urlencoded",
|
||||
"Content-length": parameters.length,
|
||||
"Connection": "close" });
|
||||
}
|
||||
|
||||
preventDefault(event);
|
||||
@@ -32,9 +34,8 @@ function onLoginClick(event) {
|
||||
|
||||
function onLoginCallback(http) {
|
||||
if (http.readyState == 4) {
|
||||
if (isHttpStatus204(http.status)) {
|
||||
if (isHttpStatus204(http.status))
|
||||
window.location.href = ApplicationBaseURL + $("userName").value;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user