SecurityHelperCheckPasswordPolicy Method (String, String, Int32, Int32, String) |
Check password policy for specified password
Namespace: CMS.HelpersAssembly: CMS.Helpers (in CMS.Helpers.dll) Version: 10.0.0
Syntax public static bool CheckPasswordPolicy(
string password,
string siteName,
int minLength,
int minNonAlphaNum,
string regularExpression
)
Parameters
- password
- Type: SystemString
Password to check for policy fulfillment - siteName
- Type: SystemString
Name of site containing policy to be met - minLength
- Type: SystemInt32
Minimum password length - minNonAlphaNum
- Type: SystemInt32
Minimal number of non-alpha numeric characters - regularExpression
- Type: SystemString
Regular expression to be met
Return Value
Type:
BooleanTrue if policy met, false otherwise
See Also