mirror of
https://github.com/inverse-inc/sogo.git
synced 2026-05-23 12:25:23 +00:00
Fix for feature #3079
Monotone-Parent: 1de4349e78aa0e2e7b5b5f1107576ae89d90f64e Monotone-Revision: 56b6e4ca9c570a4e36d00e32127d539e82da7293 Monotone-Author: flachapelle@inverse.ca Monotone-Date: 2008-11-05T17:26:02 Monotone-Branch: ca.inverse.sogo
This commit is contained in:
@@ -19,7 +19,8 @@ function onLoginClick(event) {
|
||||
var userNameField = $("userName");
|
||||
var userName = userNameField.value;
|
||||
var password = $("password").value;
|
||||
|
||||
var language = $("language").value;
|
||||
|
||||
if (userName.length > 0) {
|
||||
startAnimation($("loginButton"), $("submit"));
|
||||
|
||||
@@ -28,7 +29,9 @@ function onLoginClick(event) {
|
||||
&& !userName.endsWith(loginSuffix))
|
||||
userName += loginSuffix;
|
||||
var url = $("connectForm").getAttribute("action");
|
||||
var parameters = ("userName=" + encodeURIComponent(userName) + "&password=" + encodeURIComponent(password));
|
||||
var parameters = ("userName=" + encodeURIComponent(userName) +
|
||||
"&password=" + encodeURIComponent(password) +
|
||||
((language == "WONoSelectionString")?"":("&language=" + language)));
|
||||
document.cookie = "";
|
||||
triggerAjaxRequest(url, onLoginCallback, null, parameters,
|
||||
{ "Content-type": "application/x-www-form-urlencoded",
|
||||
|
||||
Reference in New Issue
Block a user