PasswordValidation extension

on

Methods

hasUpperCaseAndNumber() String?

Available on String?, provided by the PasswordValidation extension

hasUpperCaseAndNumber does exactly what it says will return null if valid and an error message if not. 'Password requires at least One Uppercase letter and One Number. It also requires at least 8 characters.'
matches(String? confirmPassword) String?

Available on String?, provided by the PasswordValidation extension

matches checks if the two passwords match. Provides a basic error message. 'Passwords do not match.'