protected void storeNotAssigned_RefreshData(object sender, StoreRefreshDataEventArgs e) { storeNotAssigned.DataSource = SystemApplicationWrapper.GetUserAvaiableApplicationsNotAssigned(this.CurrentLoginUser, RoleID); storeNotAssigned.DataBind(); }
protected void storeSystemApplication_Refresh(object sender, StoreRefreshDataEventArgs e) { storeSystemApplication.DataSource = SystemApplicationWrapper.FindAll(); storeSystemApplication.DataBind(); }
public List <SystemMenuEntity> GetMenuByApplication(SystemApplicationWrapper app, SystemUserEntity userEntity) { return(this.SelfDataObj.GetMenuByApplication(app.entity)); }
public override void Initialize(string name, NameValueCollection config) { if (config == null) { throw new ArgumentNullException("config"); } if (string.IsNullOrEmpty(name)) { name = "NHibernateMembershipProvider"; } if (string.IsNullOrEmpty(config["description"])) { config.Remove("description"); config.Add("description", "NHibernate Membership Provider"); } base.Initialize(name, config); application = SystemApplicationWrapper.CreateOrLoadApplication( ConfigurationUtil.GetConfigValue(config["applicationName"], HostingEnvironment.ApplicationVirtualPath)); requiresQuestionAndAnswer = Convert.ToBoolean(ConfigurationUtil.GetConfigValue(config["requiresQuestionAndAnswer"], "False")); requiresUniqueEmail = Convert.ToBoolean(ConfigurationUtil.GetConfigValue(config["requiresUniqueEmail"], "True")); enablePasswordRetrieval = Convert.ToBoolean(ConfigurationUtil.GetConfigValue(config["enablePasswordRetrieval"], "True")); enablePasswordReset = Convert.ToBoolean(ConfigurationUtil.GetConfigValue(config["enablePasswordReset"], "True")); maxInvalidPasswordAttempts = Convert.ToInt32(ConfigurationUtil.GetConfigValue(config["maxInvalidPasswordAttempts"], "5")); passwordAttemptWindow = Convert.ToInt32(ConfigurationUtil.GetConfigValue(config["passwordAttemptWindow"], "10")); minRequiredPasswordLength = Convert.ToInt32(ConfigurationUtil.GetConfigValue(config["minRequiredPasswordLength"], "7")); minRequiredNonAlphanumericCharacters = Convert.ToInt32(ConfigurationUtil.GetConfigValue(config["minRequiredAlphaNumericCharacters"], "1")); passwordStrengthRegularExpression = Convert.ToString(ConfigurationUtil.GetConfigValue(config["passwordStrengthRegularExpression"], string.Empty)); string configValue = ConfigurationUtil.GetConfigValue(config["passwordFormat"], "Hashed"); if (configValue != null) { if (!(configValue == "Hashed")) { if (configValue == "Encrypted") { passwordFormat = MembershipPasswordFormat.Encrypted; goto Label_01FB; } if (configValue == "Clear") { passwordFormat = MembershipPasswordFormat.Clear; goto Label_01FB; } } else { passwordFormat = MembershipPasswordFormat.Hashed; goto Label_01FB; } } throw NhibernateMembershipProviderExceptionUtil.NewProviderException(this, "password format not supported"); Label_01FB: Configuration configuration = WebConfigurationManager.OpenWebConfiguration(HostingEnvironment.ApplicationVirtualPath); machineKey = (MachineKeySection)configuration.GetSection("system.web/machineKey"); if ("Auto".Equals(machineKey.Decryption)) { machineKey.DecryptionKey = CryptographyUtil.CreateKey(0x18); machineKey.ValidationKey = CryptographyUtil.CreateKey(0x40); } }