I'm developing a plugin that uses the authenticate filter to intercept a login. After going through my logic I want to return an error to the logn screen and halt the login process. In side my function I have...
function myAuth($user = NULL, $username = '', $password = '')
{
//.. after my login I want to return an error
return new WP_Error('invalid_username', __('my message'));
}
The problem is that my message does not get returned - I just get the standard message for an invalid username. How do I correct this?