RequireDigitsAndChars: Boolean;
The RequireDigitsAndChars property determines whether digits and letters are mandatory required in a password.
If a value is set for the outdated RequireAlphaNumeric property, this value is set to both new properties - RequireDigitsAndChars and RequireNonAlphabeticChars.
Sub Main;
Var
MB: IMetabase;
MS: IMetabaseSecurity;
MU: IMetabasePolicy;
PassPol: IMetabasePasswordPolicy;
Begin
MB := MetabaseClass.Active;
MS := MB.Security;
MU := MS.Policy;
PassPol := MU.PasswordPolicy;
PassPol.RequireDigitsAndChars := True;
MS.Apply;
End Sub Main;
After executing the example letters and digits are mandatory required in a new password.
See also: