invoke

operator fun invoke(password: String, confirmPassword: String): ValidationResult

Validates a new password and its confirmation.

Return

A ValidationResult object indicating the success or failure of the validation.

Parameters

password

The new password to be validated.

confirmPassword

The confirmation of the new password.