IMetabasePasswordPolicy.RequireNonAlphabeticChars

Syntax

RequireNonAlphabeticChars: Boolean;

Description

The RequireNonAlphabeticChars property determines whether special characters (_, @, #, $, %, &, *, ^) are required in a password.

Comments

If a value is set for the RequireAlphaNumeric outdated property, this value is set to both new properties - RequireDigitsAndChars and RequireNonAlphabeticChars.

Example

To execute the example, add a link to the Metabase system assembly.

Sub UserProc;
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MU: IMetabasePolicy;
    PassPol: IMetabasePasswordPolicy;
    Lic: Object;
Begin
    MB := MetabaseClass.Active;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.Adm);
    MS := MB.Security;
    MU := MS.Policy;
    PassPol := MU.PasswordPolicy;
    
// Set the use of special characters in password
    PassPol.RequireNonAlphabeticChars := True;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

After executing the example non-alphabetic characters are required in a new password.

See also:

IMetabasePasswordPolicy