Click or drag to resize
SecurityHelperCheckPasswordPolicy Method (String, String, Int32, Int32, String)
Check password policy for specified password

Namespace: CMS.Helpers
Assembly: CMS.Helpers (in CMS.Helpers.dll) Version: 11.0.0
Syntax
C#
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: Boolean
True if policy met, false otherwise
See Also