UserManagementUtilsValidatePasswordPolicy Method |
Checks if a password conforms to the configured password policy. Optionally checks against a custom IPasswordPolicy class.
Namespace: PDTec.IceNet.Domain.UserManagementAssembly: PDTec.IceNet.Domain (in PDTec.IceNet.Domain.dll) Version: 6.0.0.0 (6.0.6225.27214)
Syntaxpublic static bool ValidatePasswordPolicy(
IDatabaseRepository pRepository,
string password,
out string message
)
Parameters
- pRepository
- Type: PDTec.IceNet.Core.DatabaseIDatabaseRepository
The repository. - password
- Type: SystemString
The password. - message
- Type: SystemString
In case of policy violations this parameter contains a friendly message.
Return Value
Type:
Booleantrue if the password conforms to the policy,
false otherwise.
See Also