diff --git a/WebsitePanel/Database/update_db.sql b/WebsitePanel/Database/update_db.sql index 0ab0ee8e..dbe9c447 100644 --- a/WebsitePanel/Database/update_db.sql +++ b/WebsitePanel/Database/update_db.sql @@ -12216,7 +12216,7 @@ SET @columnFullName = 'FullName' DECLARE @curUsers cursor DECLARE @curSpace cursor -DECLARE @sqlSpace nvarchar(2000) +DECLARE @sqlSpace nvarchar(3000) DECLARE @sqlUsers nvarchar(2000) DECLARE @sqlReturn nvarchar(4000) @@ -12325,7 +12325,7 @@ SET @sqlSpace = @sqlSpace + 'SI.ItemID INNER JOIN ServiceItems AS SI ON I.ItemID = SI.ItemID INNER JOIN ServiceItemTypes AS STYPE ON SI.ItemTypeID = STYPE.ItemTypeID WHERE STYPE.Searchable = 1 - UNION + UNION ( SELECT D.DomainID AS ItemID, D.DomainName as TextSearch, @@ -12339,14 +12339,37 @@ SET @sqlSpace = @sqlSpace + 'SI.ItemID UNION SELECT EA.ItemID AS ItemID, - EA.AccountName as TextSearch, + EA.DisplayName as TextSearch, ''ExchangeAccount'' as ColumnType, - ''ExchangeAccountMailbox'' as FullType, + ''ExchangeAccount'' as FullType, SI2.PackageID as PackageID, EA.AccountID as AccountID FROM @ItemsService AS I2 INNER JOIN ServiceItems AS SI2 ON I2.ItemID = SI2.ItemID INNER JOIN ExchangeAccounts AS EA ON I2.ItemID = EA.ItemID + UNION + SELECT + EA4.ItemID AS ItemID, + EA4.PrimaryEmailAddress as TextSearch, + ''ExchangeAccount'' as ColumnType, + ''ExchangeAccount'' as FullType, + SI4.PackageID as PackageID, + EA4.AccountID as AccountID + FROM @ItemsService AS I4 + INNER JOIN ServiceItems AS SI4 ON I4.ItemID = SI4.ItemID + INNER JOIN ExchangeAccounts AS EA4 ON I4.ItemID = EA4.ItemID + UNION + SELECT + EA3.ItemID AS ItemID, + EAEA.EmailAddress as TextSearch, + ''ExchangeAccount'' as ColumnType, + ''ExchangeAccount'' as FullType, + SI3.PackageID as PackageID, + EA3.AccountID as AccountID + FROM @ItemsService AS I3 + INNER JOIN ServiceItems AS SI3 ON I3.ItemID = SI3.ItemID + INNER JOIN ExchangeAccounts AS EA3 ON I3.ItemID = EA3.ItemID + INNER JOIN ExchangeAccountEmailAddresses AS EAEA ON I3.ItemID = EAEA.AccountID) ORDER BY TextSearch'; SET @sqlSpace = @sqlSpace + ' open @curValue' diff --git a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs index 7c5b85f3..46aa2207 100644 --- a/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs +++ b/WebsitePanel/Sources/WebsitePanel.EnterpriseServer.Code/Users/UserController.cs @@ -101,7 +101,7 @@ namespace WebsitePanel.EnterpriseServer // compare user passwords - if (CryptoUtils.SHA1(user.Password) == password) + if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password)) { switch (user.OneTimePasswordState) { @@ -172,7 +172,7 @@ namespace WebsitePanel.EnterpriseServer } // compare user passwords - if (CryptoUtils.SHA1(user.Password) == password) + if ((CryptoUtils.SHA1(user.Password) == password) || (user.Password == password)) return new UserInfo(user); return null; diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx index 53613e0e..5788b660 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/App_GlobalResources/WebsitePanel_SharedResources.ascx.resx @@ -5292,9 +5292,6 @@ Exchange Account - - Exchange Mailbox - Account Home diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx index 8ac84eba..8402ee19 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx @@ -50,7 +50,7 @@ $ImgBtn.attr('disabled', 'disabled'); } }); - if (document.referrer.search("pid=Login") > 0) { + if (document.referrer.search("pid=Login") > 0 || window.location.href.search("pid=SearchObject") > 0) { $("#<%= tbSearch.ClientID %>").focus(); } diff --git a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx.cs b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx.cs index cac11755..4a114110 100644 --- a/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx.cs +++ b/WebsitePanel/Sources/WebsitePanel.WebPortal/DesktopModules/WebsitePanel/SkinControls/GlobalSearch.ascx.cs @@ -48,7 +48,6 @@ namespace WebsitePanel.Portal.SkinControls const string TYPE_DOMAIN = "Domain"; const string TYPE_ORGANIZATION = "Organization"; const string TYPE_EXCHANGEACCOUNT = "ExchangeAccount"; - const string TYPE_EXCHANGEACCOUNT_MAILBOX = "ExchangeAccountMailbox"; const string PID_SPACE_WEBSITES = "SpaceWebSites"; const string PID_SPACE_DIMAINS = "SpaceDomains"; const string PID_SPACE_EXCHANGESERVER = "SpaceExchangeServer"; @@ -151,12 +150,6 @@ namespace WebsitePanel.Portal.SkinControls "moduleDefId=ExchangeServer"); break; case TYPE_EXCHANGEACCOUNT: - res = PortalUtils.NavigatePageURL(PID_SPACE_EXCHANGESERVER, "ItemID", itemId.ToString(), - PortalUtils.SPACE_ID_PARAM + "=" + spaceId, "ctl=edit_user",//"mid="+this.ModuleID.ToString(), - "AccountID="+this.tbAccountId.Text,"Context=User", - "moduleDefId=ExchangeServer"); - break; - case TYPE_EXCHANGEACCOUNT_MAILBOX: res = PortalUtils.NavigatePageURL(PID_SPACE_EXCHANGESERVER, "ItemID", itemId.ToString(), PortalUtils.SPACE_ID_PARAM + "=" + spaceId, "ctl=edit_user",//"mid="+this.ModuleID.ToString(), "AccountID=" + this.tbAccountId.Text, "Context=Mailbox",