123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103 |
- using System;
- using System.Collections.Generic;
- using System.Linq;
- using System.Text;
- using Bowin.Common.Utility;
- namespace EMISOnline.Utility
- {
- public class Const
- {
- public static List<string> LOCAL_AUTH_EXCEPTURL
- {
- get
- {
- List<string> lurl = new List<string>();
- lurl.Add("Content/");
- lurl.Add("Doc/");
- lurl.Add("bundles/");
- lurl.Add("Scripts/");
- lurl.Add("/UserVerify");
- lurl.Add("/ForgotPassword");
- lurl.Add("UploadFile/");
- lurl.Add("/MsgShow");
- lurl.Add("Account/ChangePassword");
- return lurl;
- }
- }
- public static string LOCAL_SETTING_LOGIN_COOKIENAME
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["logincookieName"];
- }
- catch
- {
- return "";
- }
- }
- }
- public static string USER_INIT_PASSWORD
- {
- get { return ("123456").MD5(); }
- }
- public static string LOCAL_SETTING_UPLOAD_FILEPATH
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["FileUploadPath"];
- }
- catch
- {
- return "";
- }
- }
- }
- public static bool SSO_IS_SSO_LOGIN
- {
- get
- {
- try
- {
- return System.Configuration.ConfigurationManager.AppSettings["IsSSOLogin"] == "1";
- }
- catch (Exception ex)
- {
- return false;
- }
- }
- }
- public static string SSO_HOST
- {
- get
- {
- try
- {
- var ssoHost = System.Configuration.ConfigurationManager.AppSettings["SSOHost"];
- if (!ssoHost.EndsWith("/"))
- {
- ssoHost += "/";
- }
- return ssoHost;
- }
- catch (Exception ex)
- {
- throw new Exception("单点登录配置错误。");
- }
- }
- }
- }
- }
|