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

**URL:** https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524
**Category:** UX
**Created:** [10 בדצמבר,‏ 2015,‏ 11:10am UTC](https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524 "2015-12-10T11:10:59Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![mcwumbly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/mcwumbly/32/103861_2.png) [@mcwumbly](https://meta.discourse.org/u/mcwumbly)
#### Post date: [10 בדצמבר,‏ 2015,‏ 11:11am UTC](https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524/1 "2015-12-10T11:11:00Z")

</div>

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:

```

 ![](https://global.discourse-cdn.com/meta/original/3X/f/a/fab288d284a731b67e11ea76b557524ef0f9ef31.png)

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

```

 ![](https://global.discourse-cdn.com/meta/original/3X/8/5/85015583da559c764bd34aae8effefa52cbead7b.png)

---

<div class="post-metadata">

### Author: ![codinghorror](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/codinghorror/32/110067_2.png) [@codinghorror](https://meta.discourse.org/u/codinghorror)
#### Post date: [10 בדצמבר,‏ 2015,‏ 10:28pm UTC](https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524/2 "2015-12-10T22:28:31Z")

</div>

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

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [20 בדצמבר,‏ 2015,‏ 5:10pm UTC](https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524/3 "2015-12-20T17:10:52Z")

</div>

Fixed via:

[https://github.com/discourse/discourse/commit/4c86758f74e9f42ae925e76802169a29ad8a3cff](https://github.com/discourse/discourse/commit/4c86758f74e9f42ae925e76802169a29ad8a3cff)

---

<div class="post-metadata">

### Author: ![techAPJ](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/techapj/32/342990_2.png) [@techAPJ](https://meta.discourse.org/u/techAPJ)
#### Post date: [20 בדצמבר,‏ 2015,‏ 5:11pm UTC](https://meta.discourse.org/t/invite-failure-could-be-more-informative-when-email-domain-is-not-whitelisted/36524/4 "2015-12-20T17:11:02Z")

</div>


