public function loginErrorAccessManagement($error)
    {
        // Define default message
        $message = is_bool($error) && $error ? Translate::t('configuration.accessmanagement.login.error') : $error;

        // Change login error message
        add_filter('login_errors', function () use ($message) {
            if (!empty($message)) {
                return $message;
            }
        });
    }