isPINValid

fun isPINValid(pin: String): Boolean

Checks if the pin is valid. The following rules apply to verify the PIN:

  • Must be 4 digits long

  • Must use 3 different digits

  • Must not be a numerical series (e.g. 1234, 4321, ...)

Return

True if the PIN is valid, false otherwise