I'm trying to change the validation message for zfcuser register form. I have try to change the message by using following code in bootstrap.php:
$filter->get('email')->setErrorMessage('Email address has been used', \ZfcUser\Validator\AbstractRecord::ERROR_RECORD_FOUND);
However, this line of code changes all my email invalid message but what I want to achieve is different validation messages for different errors.
For example:
Email exist => 'Email address has been used'
Invalid format => 'Email not valid'
Not input => 'Please input your email'
Anyone can share with me anyway to achieve that?