PasswordValidationType

object PasswordValidationType : EasyFormsValidationType

Password validation using below criteria:

  • Password must contain at least one digit 0-9.

  • Password must contain at least one lowercase Latin character a-z.

  • Password must contain at least one uppercase Latin character A-Z.

  • Password must contain at least one special character like ! @ # & ( ).

  • Password must contain a length of at least 8 characters and a maximum of 20 characters.

Functions

isValid
Link copied to clipboard
open fun isValid(value: String): Boolean
Opened so it can be overridden to suits your validation needs.

Properties

maxLength
Link copied to clipboard
open val maxLength: Int
defines a text should have a maximum set of chars.
minLength
Link copied to clipboard
open val minLength: Int
defines a text should have a minimum set of chars.
regex
Link copied to clipboard
open val regex: String? = null
the regex to be used to validate the text if any.

Sources

androidJvm source
Link copied to clipboard