diff --git a/common/models/HuBankAccountValidator.php b/common/models/HuBankAccountValidator.php index e93cf4c..f39bc31 100644 --- a/common/models/HuBankAccountValidator.php +++ b/common/models/HuBankAccountValidator.php @@ -10,7 +10,7 @@ class HuBankAccountValidator return false; } $stripedBankAccount = preg_replace('/\s+/', '', $bankAccount); - if ( strlen($stripedBankAccount) != 24){ + if ( !(strlen($stripedBankAccount) == 24 || strlen($stripedBankAccount) == 16)){ return false; } $arrayOfNumbers = str_split($stripedBankAccount);