RequireDigitsAndChars: Boolean;
The RequireDigitsAndChars property determines whether numbers and letters are required in a password.
If a value is set for the RequireAlphaNumeric outdated property, this value is set to both new properties - RequireDigitsAndChars and RequireNonAlphabeticChars.
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 that password must contain numbers and letters
PassPol.RequireDigitsAndChars := True;
// Save changes
MS.Apply;
// Check in license
Lic := Null;
End Sub UserProc;
After executing the example letters and numbers are required in a new password.
See also: