# Anonymous User Can't Be Created

**URL:** https://meta.discourse.org/t/anonymous-user-cant-be-created/28610
**Category:** Feature
**Created:** [May 11, 2015, 5:26am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610 "2015-05-11T05:26:29Z")
**Posts on this page:** 11
**Page:** 1

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [May 11, 2015, 5:26am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/1 "2015-05-11T05:26:29Z")

</div>

Our Discourse install has the anonymous user feature enabled, but clicking it does nothing.

Looking in the logs, I can see:

```
ActiveRecord::RecordInvalid (Validation failed: Email is not allowed from that email provider. Please use another email address., Name can't be blank)

```

Now, this error would be okay if it weren’t for the anonymous user. We’re blocking all e-mails not from a specific domain and we’re requiring names.

Could it be possible to implement some sort of code that allows the Anonymous user to bypass e-mail and name checks?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 5:28am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/2 "2015-05-11T05:28:04Z")

</div>

are you disallowing signups from certain domains?

---

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [May 11, 2015, 5:29am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/3 "2015-05-11T05:29:02Z")

</div>

We’re disallowing signups from all domains except for a handful.

![](https://global.discourse-cdn.com/meta/original/4X/c/e/f/cef1926cf3cb6d3d30dff93b6eef69987ea4408b.png)  
(where [example.com](http://example.com) is the Discourse domain name)

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 5:32am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/4 "2015-05-11T05:32:29Z")

</div>

Well then, that explains it, we may need to bypass here, emails on anon are of the form

`056130de251a63d4bac3d6c85034afa0@d3fc952a1feaeb9cd14e241af49873dd.com`

---

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [May 11, 2015, 5:33am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/5 "2015-05-11T05:33:52Z")

</div>

If the domain didn’t randomly change, it wouldn’t be a problem.

Is there any way I can fix this, or do I have to wait for this issue to be solved?

---

<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: [May 11, 2015, 5:41am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/6 "2015-05-11T05:41:47Z")

</div>

I support making all anons from [example.com](http://example.com) personally. That seems fine @sam

---

<div class="post-metadata">

### Author: ![KazWolfe](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/kazwolfe/32/64441_2.png) [@KazWolfe](https://meta.discourse.org/u/KazWolfe)
#### Post date: [May 11, 2015, 5:43am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/7 "2015-05-11T05:43:23Z")

</div>

What about making anons use the same domain as the Discourse install?

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 5:43am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/8 "2015-05-11T05:43:45Z")

</div>

yeah that is a good suggestion, perhaps

`anon.meta.discourse.org`

Its a domain you have control over AND that will not clash with an existing valid one

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 6:14am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/9 "2015-05-11T06:14:48Z")

</div>

its already using [example.com](http://example.com) it appears 🙂 so nothing really left to do, I think that is fine for now. @KazWolfe just whitelist [example.com](http://example.com) and you should be good

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 7:52am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/10 "2015-05-11T07:52:31Z")

</div>

this is now fixed:

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

set allowed list to `anon.YOURSITE.COM` and anons will work.

---

<div class="post-metadata">

### Author: ![sam](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/sam/32/102149_2.png) [@sam](https://meta.discourse.org/u/sam)
#### Post date: [May 11, 2015, 7:53am UTC](https://meta.discourse.org/t/anonymous-user-cant-be-created/28610/11 "2015-05-11T07:53:06Z")

</div>


