Пример #1
0
        public override void Define(ISettingDefinitionContext context)
        {
            //Define your own settings here. Example:
            //context.Add(new SettingDefinition(DenturePlusSettings.MySetting1));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.EndPoint,
                            _smsOptions.EndPoint,
                            L("EndPoint")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultSecretId,
                            _commonOptions.SecretId,
                            L("DefaultSecretId")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultSecretKey,
                            _commonOptions.SecretKey,
                            L("DefaultSecretKey")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultSmsSdkAppid,
                            _smsOptions.DefaultSmsSdkAppid,
                            L("DefaultSmsSdkAppid")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultSign,
                            _smsOptions.DefaultSign,
                            L("DefaultSign")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultExtendCode,
                            _smsOptions.DefaultExtendCode,
                            L("DefaultExtendCode")));

            context.Add(new SettingDefinition(
                            AbpSmsTencentCloudSettings.DefaultSenderId,
                            _smsOptions.DefaultSenderId,
                            L("DefaultSenderId")));
        }
Пример #2
0
 public override void Define(ISettingDefinitionContext context)
 {
     //Define your own settings here. Example:
     context.Add(new SettingDefinition(WenitorSettings.MySetting1));
 }
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(
         new SettingDefinition(LocalizationSettingNames.DefaultLanguage, "en", isVisibleToClients: true)
         );
 }
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(GetAccountSettings());
 }
Пример #5
0
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(CreateAliyunSettings());
 }
Пример #6
0
        public override void Define(ISettingDefinitionContext context)
        {
            context.Add(
                new SettingDefinition(
                    IdentitySettingNames.Password.RequiredLength,
                    6.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequiredLength"),
                    L("Description:Abp.Identity.Password.RequiredLength"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequiredUniqueChars,
                    1.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequiredUniqueChars"),
                    L("Description:Abp.Identity.Password.RequiredUniqueChars"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireNonAlphanumeric,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequireNonAlphanumeric"),
                    L("Description:Abp.Identity.Password.RequireNonAlphanumeric"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireLowercase,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequireLowercase"),
                    L("Description:Abp.Identity.Password.RequireLowercase"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireUppercase,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequireUppercase"),
                    L("Description:Abp.Identity.Password.RequireUppercase"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireDigit,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequireDigit"),
                    L("Description:Abp.Identity.Password.RequireDigit"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.AllowedForNewUsers,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Lockout.AllowedForNewUsers"),
                    L("Description:Abp.Identity.Lockout.AllowedForNewUsers"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.LockoutDuration,
                    (5 * 60).ToString(),
                    L("DisplayName:Abp.Identity.Lockout.LockoutDuration"),
                    L("Description:Abp.Identity.Lockout.LockoutDuration"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.MaxFailedAccessAttempts,
                    5.ToString(),
                    L("DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts"),
                    L("Description:Abp.Identity.Lockout.MaxFailedAccessAttempts"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.SignIn.RequireConfirmedEmail,
                    false.ToString(),
                    L("DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail"),
                    L("Description:Abp.Identity.SignIn.RequireConfirmedEmail"),
                    true),
                new SettingDefinition(
                    IdentitySettingNames.SignIn.EnablePhoneNumberConfirmation,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.SignIn.EnablePhoneNumberConfirmation"),
                    L("Description:Abp.Identity.SignIn.EnablePhoneNumberConfirmation"),
                    true),
                new SettingDefinition(
                    IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber,
                    false.ToString(),
                    L("DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber"),
                    L("Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.User.IsUserNameUpdateEnabled,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled"),
                    L("Description:Abp.Identity.User.IsUserNameUpdateEnabled"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.User.IsEmailUpdateEnabled,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.User.IsEmailUpdateEnabled"),
                    L("Description:Abp.Identity.User.IsEmailUpdateEnabled"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.OrganizationUnit.MaxUserMembershipCount,
                    int.MaxValue.ToString(),
                    L("Identity.OrganizationUnit.MaxUserMembershipCount"),
                    L("Identity.OrganizationUnit.MaxUserMembershipCount"),
                    true)
                );
        }
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(CreateFileSystemSettings());
 }
Пример #8
0
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(
         new SettingDefinition(AccountSettingNames.IsSelfRegistrationEnabled, "true")
         );
 }
Пример #9
0
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(
         new SettingDefinition(TestSettingNames.TestSettingPackager, "abc")
         );
 }
Пример #10
0
        public override void Define(ISettingDefinitionContext context)
        {
            context.Add(
                new SettingDefinition(
                    IdentitySettingNames.Password.RequiredLength,
                    6.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequiredLength"),
                    L("Description:Abp.Identity.Password.RequiredLength"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequiredUniqueChars,
                    1.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequiredUniqueChars"),
                    L("Description:Abp.Identity.Password.RequiredUniqueChars"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireNonAlphanumeric,
                    true.ToString(),
                    L("DisplayName:Abp.Identity.Password.RequireNonAlphanumeric"),
                    L("Description:Abp.Identity.Password.RequireNonAlphanumeric"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireLowercase,
                    true.ToString(), L("DisplayName:Abp.Identity.Password.RequireLowercase"),
                    L("Description:Abp.Identity.Password.RequireLowercase"),
                    true),

                new SettingDefinition(IdentitySettingNames.User.IsUserNameUpdateEnabled, "true"),
                new SettingDefinition(IdentitySettingNames.User.IsEmailUpdateEnabled, "true"),

                new SettingDefinition(EmailSettingNames.Smtp.Host, "smtp.163.com"),
                new SettingDefinition(EmailSettingNames.Smtp.Port, "25"),
                new SettingDefinition(EmailSettingNames.Smtp.UserName, "*****@*****.**"),
                new SettingDefinition(EmailSettingNames.Smtp.Password, "abc520"),
                new SettingDefinition(EmailSettingNames.Smtp.Domain),
                new SettingDefinition(EmailSettingNames.Smtp.EnableSsl, "true"),
                new SettingDefinition(EmailSettingNames.Smtp.UseDefaultCredentials, "false"),
                new SettingDefinition(EmailSettingNames.DefaultFromAddress, "*****@*****.**"),
                new SettingDefinition(EmailSettingNames.DefaultFromDisplayName, "ABP")
                new SettingDefinition(
                    IdentitySettingNames.Password.RequireUppercase,
                    true.ToString(), L("DisplayName:Abp.Identity.Password.RequireUppercase"),
                    L("Description:Abp.Identity.Password.RequireUppercase"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Password.RequireDigit,
                    true.ToString(), L("DisplayName:Abp.Identity.Password.RequireDigit"),
                    L("Description:Abp.Identity.Password.RequireDigit"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.AllowedForNewUsers,
                    true.ToString(), L("DisplayName:Abp.Identity.Lockout.AllowedForNewUsers"),
                    L("Description:Abp.Identity.Lockout.AllowedForNewUsers"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.LockoutDuration,
                    (5 * 60).ToString(), L("DisplayName:Abp.Identity.Lockout.LockoutDuration"),
                    L("Description:Abp.Identity.Lockout.LockoutDuration"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.Lockout.MaxFailedAccessAttempts,
                    5.ToString(), L("DisplayName:Abp.Identity.Lockout.MaxFailedAccessAttempts"),
                    L("Description:Abp.Identity.Lockout.MaxFailedAccessAttempts"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.SignIn.RequireConfirmedEmail,
                    false.ToString(), L("DisplayName:Abp.Identity.SignIn.RequireConfirmedEmail"),
                    L("Description:Abp.Identity.SignIn.RequireConfirmedEmail"),
                    true),
                new SettingDefinition(
                    IdentitySettingNames.SignIn.RequireConfirmedPhoneNumber,
                    false.ToString(), L("DisplayName:Abp.Identity.SignIn.RequireConfirmedPhoneNumber"),
                    L("Description:Abp.Identity.SignIn.RequireConfirmedPhoneNumber"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.User.IsUserNameUpdateEnabled,
                    true.ToString(), L("DisplayName:Abp.Identity.User.IsUserNameUpdateEnabled"),
                    L("Description:Abp.Identity.User.IsUserNameUpdateEnabled"),
                    true),

                new SettingDefinition(
                    IdentitySettingNames.User.IsEmailUpdateEnabled,
                    true.ToString(), L("DisplayName:Abp.Identity.User.IsEmailUpdateEnabled"),
                    L("Description:Abp.Identity.User.IsEmailUpdateEnabled"),
                    true)
                );
        }
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(new SettingDefinition(HelloSettings.Port));
 }
 public override void Define(ISettingDefinitionContext context)
 {
     context.Add(new SettingDefinition("TelegramBotManager.Server.Url", "localhost"));
 }