How to set minimum length and error message for password recovery?

I’ve managed to find why I couldn’t change the error message. For some reason, our old dev has put a login_error_override() in Theme’s Function (function.php from theme).

After commented the function call, my custom error worked perfectly, as well the original error messages from theme, wordpress and plugins.

//add_filter('login_errors', 'login_error_override');

Hata!: SQLSTATE[HY000] [1045] Access denied for user 'divattrend_liink'@'localhost' (using password: YES)