IMetabasePasswordPolicy.RequireNonAlphabeticChars

Syntax

RequireNonAlphabeticChars: Boolean;

RequireNonAlphabeticChars: System.Boolean;

Description

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

Comments

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

Example

To execute the example, add links to the Metabase, ForeSystem (for the Fore.NET example) system assemblies.

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 special characters use in password
    PassPol.RequireNonAlphabeticChars := True;
    
// Save changes
    MS.Apply;
    
// Check in license
    Lic := Null;
End Sub UserProc;

Imports Prognoz.Platform.Interop.Metabase;
Imports Prognoz.Platform.Interop.ForeSystem;

Public Shared Sub Main(Params : StartParams);
Var
    MB: IMetabase;
    MS: IMetabaseSecurity;
    MU: IMetabasePolicy;
    PassPol: IMetabasePasswordPolicy;
    Lic: Object;
Begin
    MB := Params.Metabase;
    
// Check out license to work with security manager
    Lic := MB.RequestLicense(UiLicenseFeatureType.lftAdm);
    MS := MB.Security;
    MU := MS.Policy;
    PassPol := MU.PasswordPolicy;
    
// Set the special characters use in password
    PassPol.RequireNonAlphabeticChars := False;
    
// Save changes
    MS.Apply();
    
// Release license
    Lic := Null;
End Sub;

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

See also:

IMetabasePasswordPolicy