ValidationHelper.ValidatePassword Method

Namespace:
Weavy.Core.Helpers
Assembly:
Weavy.Core.dll

Overloads

ValidatePassword(string) Ensures that the password is of the required length and meets the configured requirements.
ValidatePassword(string, int, bool, bool, bool, bool) Ensures that the password is of the required length and meets the specified requirements.

ValidatePassword(string)

Ensures that the password is of the required length and meets the configured requirements.

public static IEnumerable<ValidationResult> ValidatePassword(string password)

Parameters

password
string

Returns

System.Collections.Generic.IEnumerable

ValidatePassword(string, int, bool, bool, bool, bool)

Ensures that the password is of the required length and meets the specified requirements.

public static IEnumerable<ValidationResult> ValidatePassword(string password, int requiredLength, bool requireDigit, bool requireLower, bool requireUpper, bool requireSpecial)

Parameters

password
string

The password to validate.

requiredLength
int

Minimum required length

requireDigit
bool

Require a digit ('0' - '9')

requireLower
bool

Require a lower case letter ('a' - 'z')

requireUpper
bool

Require an upper case letter ('A' - 'Z')

requireSpecial
bool

Require a non letter or digit character

Returns

System.Collections.Generic.IEnumerable