minLength

fun minLength(length: Int, description: String = "Password must be at least "): PasswordRule(source)

Creates a PasswordRule that checks whether the password is at least length characters long.

Parameters

length

The minimum length of the password.

description

The description of the rule.