Kentico.KInspector.Modules.PasswordPolicyModule.GetModuleMetadata C# (CSharp) Method

GetModuleMetadata() public method

public GetModuleMetadata ( ) : Kentico.KInspector.Core.ModuleMetadata
return Kentico.KInspector.Core.ModuleMetadata
        public ModuleMetadata GetModuleMetadata()
        {
            return new ModuleMetadata
            {
                Name = "Password policy settings",
                Comment = @"It is critical that passwords are stored securely in the database, the module checks that the default and recommended SHA2 option is configured. https://docs.kentico.com/display/K9/Password+encryption+in+database
            This module also checks that there is a password policy enforced to ensure users use a password that meets a minimum set of requirements. https://docs.kentico.com/display/K9/Password+strength+policy+and+its+enforcement",
                SupportedVersions = new[] {
                    new Version("7.0"),
                    new Version("8.0"),
                    new Version("8.1"),
                    new Version("8.2"),
                    new Version("9.0")
                },
                Category = "Security",
            };
        }

Usage Example

        public void Should_PopulateComments_When_ReturningModuleMetadata()
        {
            // arrange...
            PasswordPolicyModule mod = new PasswordPolicyModule();

            // act...
            var meta = mod.GetModuleMetadata();

            // assert...
            Assert.IsFalse(string.IsNullOrEmpty(meta.Comment));
        }
All Usage Examples Of Kentico.KInspector.Modules.PasswordPolicyModule::GetModuleMetadata