Validate whether the supplied Password meets the specified criteria.

A Strong Password must: <list> <item>Be at least 8 characters in length</item> <item>Contain both upper and lower case letters</item> <item>Contain at least one number</item> <item>Contain a symbol if StrongPasswordMustIncludeSymbols=True</item> <item>Not contain the User's Id</item> </list>

Syntax

ISSecurity.ValidatePassword(password, mustBeStrong, [message], [existingPassword], [minimumLength], [userId])

Parameters

NameTypeOptionalByRefDescription
password String The Password to check.
mustBeStrong Boolean Indicates whether the Password must be Strong.
message String Optional ByRef A Message detailing why the Password is not valid.
existingPassword String Optional The Existing Password if this check should perform certain tests based on the new password compared to the existing one.
minimumLength Integer Optional Minimum length of the Password. If omitted, a value of 8 is assumed.
userId String Optional The User Id that cannot appear in a Strong Password, e.g., a User Id or a finPOWER Connect Client Id.

Return Value

Boolean
Member of:
ISSecurity
Namespace:
Intersoft.ISSupport6
Assembly:
ISSupport6, Version=6.0.3
Target Framework:
.NET 9.0