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, Int32, Boolean, Boolean, Boolean, Boolean) 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 ValidatePassword(string password)

Parameters

password
System.String

Returns

System.Collections.Generic.IEnumerable{System.ComponentModel.DataAnnotations.ValidationResult}

ValidatePassword(String, Int32, Boolean, Boolean, Boolean, Boolean)

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

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

Parameters

password
System.String
requiredLength
System.Int32
requireDigit
System.Boolean
requireLower
System.Boolean
requireUpper
System.Boolean
requireSpecial
System.Boolean

Returns

System.Collections.Generic.IEnumerable{System.ComponentModel.DataAnnotations.ValidationResult}