From d0a170f5ee7b4c6519d9759b19eefeffbcc07eb6 Mon Sep 17 00:00:00 2001 From: Wolfgang Sourdeau Date: Thu, 22 May 2008 16:03:29 +0000 Subject: [PATCH] Monotone-Parent: 85c10bef83b01a3ff9635d8bbe0d9971df2d6685 Monotone-Revision: dd4aef6426001fe5d5e03a26c8e441a3fbd87196 Monotone-Author: wsourdeau@inverse.ca Monotone-Date: 2008-05-22T16:03:29 Monotone-Branch: ca.inverse.sogo --- UI/WebServerResources/SOGoRootPage.js | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/UI/WebServerResources/SOGoRootPage.js b/UI/WebServerResources/SOGoRootPage.js index b6ea6be28..14b834ab5 100644 --- a/UI/WebServerResources/SOGoRootPage.js +++ b/UI/WebServerResources/SOGoRootPage.js @@ -20,7 +20,8 @@ function onLoginClick(event) { var password = $("password").value; if (userName.length > 0) { - if (loginSuffix && loginSuffix.length > 0 + if (typeof(loginSuffix) != "undefined" + && loginSuffix.length > 0 && !userName.endsWith(loginSuffix)) userName += loginSuffix; var url = $("connectForm").getAttribute("action"); @@ -39,7 +40,7 @@ function onLoginCallback(http) { if (http.readyState == 4) { if (isHttpStatus204(http.status)) { var userName = $("userName").value; - if (loginSuffix + if (typeof(loginSuffix) != "undefined" && loginSuffix.length > 0 && !userName.endsWith(loginSuffix)) userName += loginSuffix;