password reset fixes
This commit is contained in:
parent
69b1bc2f16
commit
087697ba7f
18 changed files with 133 additions and 46 deletions
|
@ -27,6 +27,7 @@
|
|||
// SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
|
||||
using System;
|
||||
using System.Linq;
|
||||
using System.Xml;
|
||||
using System.Collections.Generic;
|
||||
using System.Text;
|
||||
|
@ -46,6 +47,7 @@ namespace WebsitePanel.EnterpriseServer
|
|||
public const string PACKAGE_DISPLAY_SETTINGS = "PackageDisplaySettings";
|
||||
public const string RDS_SETTINGS = "RdsSettings";
|
||||
public const string WEBDAV_PORTAL_SETTINGS = "WebdavPortalSettings";
|
||||
public const string WEBDAV_PASSWORD_RESET_ENABLED_KEY = "WebdavPasswordResetEnabled";
|
||||
|
||||
// key to access to wpi main & custom feed in wpi settings
|
||||
public const string WPI_MAIN_FEED_KEY = "WpiMainFeedUrl";
|
||||
|
@ -98,7 +100,25 @@ namespace WebsitePanel.EnterpriseServer
|
|||
}
|
||||
}
|
||||
|
||||
public int GetInt(string settingName)
|
||||
public bool Contains(string settingName)
|
||||
{
|
||||
return Settings.AllKeys.Any(x => x.ToLowerInvariant() == (settingName ?? string.Empty).ToLowerInvariant());
|
||||
}
|
||||
|
||||
public T GetValueOrDefault<T>(string settingName, T defaultValue)
|
||||
{
|
||||
try
|
||||
{
|
||||
return (T)Convert.ChangeType(Settings[settingName], typeof(T));
|
||||
}
|
||||
catch
|
||||
{
|
||||
}
|
||||
|
||||
return defaultValue;
|
||||
}
|
||||
|
||||
public int GetInt(string settingName)
|
||||
{
|
||||
return Int32.Parse(Settings[settingName]);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue