Have a look at my first reply to this topic for details about how to restrict logins to Discourse: How to prevent some WP users from being able to login to Discourse. This is assuming that the WordPress site is functioning as the SSO provider for Discourse and that you are using the WP Discourse plugin.
1 Like