Invite failure could be more informative when email domain is not whitelisted

When a site is configured to only allow login from email addresses with a particular domain, and a user attempts to invite someone to a topic with an email outside of that domain, the failure message could be more informative:

1. Site setting is configured to only allow email from your domain:

2. User attempts to invite someone to a topic with an email address in another domain:

6 Likes

Ah yes, this is a bug, can you fix @techapj?

3 Likes

Fixed via:

https://github.com/discourse/discourse/commit/4c86758f74e9f42ae925e76802169a29ad8a3cff

4 Likes