Anonymous User Can't Be Created


#1

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?


(Sam Saffron) #2

are you disallowing signups from certain domains?


#3

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

(where example.com is the Discourse domain name)


(Sam Saffron) #4

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

056130de251a63d4bac3d6c85034afa0@d3fc952a1feaeb9cd14e241af49873dd.com


#5

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?


(Jeff Atwood) #6

I support making all anons from example.com personally. That seems fine @sam


#7

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


(Sam Saffron) #8

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


(Sam Saffron) #9

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


(Sam Saffron) #10

this is now fixed:

https://github.com/discourse/discourse/commit/f180aba492f7263857a3efdf71c247bc721cf8d7

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


(Sam Saffron) #11