# Users can't make new account (register error)

**URL:** https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002
**Category:** Support
**Created:** [January 7, 2023, 7:58am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002 "2023-01-07T07:58:30Z")
**Posts on this page:** 15
**Page:** 1

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 7:58am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/1 "2023-01-07T07:58:31Z")

</div>

Today I notice that users can’t create new user account. You can reproduce it at [www.llastres.com](http://www.llastres.com)

The error is related to email (in use), I didn’t made any change in config lately, if it helps.

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 10:23am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/2 "2023-01-07T10:23:15Z")

</div>

![KpCKBU](https://global.discourse-cdn.com/meta/original/4X/4/7/a/47aa55889de767f05cf9761d83bcc76f1e9ae80b.png)

Obviously, the email isn’t in the database

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 7, 2023, 10:49am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/3 "2023-01-07T10:49:44Z")

</div>

I’ve just had time for a quick test run and I can see an error in the console about the email check - `XHRGEThttps://llastres.com/u/check_email?email=jammydodger@jammydodger.monster [HTTP/1.1 500 Internal Server Error 0ms]`

I’m not seeing the same on my test site (updated this morning). Is there anything notable about your set-up that could provide some clues? Plugins, customisations, etc?

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 11:09am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/4 "2023-01-07T11:09:01Z")

</div>

No customizations or weird code, only oficial plugins and theme components.

 ![Screenshot_20230107-120531_Chrome](https://global.discourse-cdn.com/meta/original/4X/e/0/8/e0831e37ed333b4f6309bbb5b75e9be0e1ef43a2.png)

 ![Screenshot_20230107-120748_Chrome_1](https://global.discourse-cdn.com/meta/original/4X/4/8/5/4850dfa345007a4b28eda976fd8cd85facb63f3e.png)

I’m on latest build and everything is update.

---

<div class="post-metadata">

### Author: ![rorycb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rorycb/32/423647_2.png) [@rorycb](https://meta.discourse.org/u/rorycb)
#### Post date: [January 7, 2023, 1:36pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/5 "2023-01-07T13:36:02Z")

</div>

Anything showing up in the logs? Should be at [https://llastres.com/logs/](https://llastres.com/logs/) - The 500 error Jammy is seeing would mean something is going wrong server side

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 3:08pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/6 "2023-01-07T15:08:07Z")

</div>

![Screenshot_20230107-160553_Kiwi Browser_1](https://global.discourse-cdn.com/meta/original/4X/6/4/c/64c0e3ffbd22ad1dd7e8fb0922e1e267fba7ea47.png)

This is new for me, can’t figure out how to fix this warnings 🥺

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 3:16pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/7 "2023-01-07T15:16:45Z")

</div>

Last four warnings:

> **4**
>
> Message
> 
> (facebook) Authentication failure! no\_authorization\_code: OmniAuth::Strategies::Facebook::NoAuthorizationCodeError, must pass either a `code` (via URL or by an `fbsr_XXX` signed request cookie)
> 
> Backtrace
> 
> /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:163:in `log' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:486:in `fail!’  
> /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-facebook-9.0.0/lib/omniauth/strategies/facebook.rb:75:in `rescue in callback_phase' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-facebook-9.0.0/lib/omniauth/strategies/facebook.rb:70:in `callback\_phase’  
> /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:238:in `callback_call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:189:in `call!’  
> /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/strategy.rb:169:in `call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/omniauth-1.9.2/lib/omniauth/builder.rb:45:in `call’  
> /var/www/discourse/lib/middleware/omniauth\_bypass\_middleware.rb:50:in `call' /var/www/discourse/vendor/bundle/ruby/2.7.0/gems/rack-2.2.4/lib/rack/tempfile_reaper.rb:15:in `call’
> 
> Env
> 
> HTTP HOSTS: [llastres.com](http://llastres.com)

> **3**
>
> Message (3 copies reported)
> 
> RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|\*.ru)$/i)  
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> app/controllers/users\_controller.rb:545:in `check_email' app/controllers/application_controller.rb:413:in `block in with\_resolved\_locale’  
> app/controllers/application\_controller.rb:413:in `with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:71:in `call’  
> lib/content\_security\_policy/middleware.rb:12:in `call' lib/middleware/anonymous_cache.rb:368:in `call’  
> config/initializers/100-quiet\_logger.rb:23:in `call' config/initializers/100-silence_logger.rb:31:in `call’  
> lib/middleware/enforce\_hostname.rb:23:in `call' lib/middleware/request_tracker.rb:222:in `call’
> 
> Backtrace
> 
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> app/controllers/users\_controller.rb:545:in `check_email' actionpack (7.0.3.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send\_action’  
> actionpack (7.0.3.1) lib/abstract\_controller/base.rb:215:in `process_action' actionpack (7.0.3.1) lib/action_controller/metal/rendering.rb:53:in `process\_action’  
> actionpack (7.0.3.1) lib/abstract\_controller/callbacks.rb:234:in `block in process_action' activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in `block in run\_callbacks’
> 
> Env
> 
> HTTP HOSTS: [llastres.com](http://llastres.com)

> **2**
>
> Message (13 copies reported)
> 
> RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|\*.ru)$/i)  
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> app/controllers/users\_controller.rb:545:in `check_email' app/controllers/application_controller.rb:413:in `block in with\_resolved\_locale’  
> app/controllers/application\_controller.rb:413:in `with_resolved_locale' lib/middleware/omniauth_bypass_middleware.rb:71:in `call’  
> lib/content\_security\_policy/middleware.rb:12:in `call' lib/middleware/anonymous_cache.rb:366:in `call’  
> config/initializers/100-quiet\_logger.rb:23:in `call' config/initializers/100-silence_logger.rb:31:in `call’  
> lib/middleware/enforce\_hostname.rb:23:in `call' lib/middleware/request_tracker.rb:222:in `call’
> 
> Backtrace
> 
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> app/controllers/users\_controller.rb:545:in `check_email' actionpack (7.0.3.1) lib/action_controller/metal/basic_implicit_render.rb:6:in `send\_action’  
> actionpack (7.0.3.1) lib/abstract\_controller/base.rb:215:in `process_action' actionpack (7.0.3.1) lib/action_controller/metal/rendering.rb:53:in `process\_action’  
> actionpack (7.0.3.1) lib/abstract\_controller/callbacks.rb:234:in `block in process_action' activesupport (7.0.3.1) lib/active_support/callbacks.rb:118:in `block in run\_callbacks’
> 
> Env
> 
> HTTP HOSTS: [llastres.com](http://llastres.com)

> **1**
>
> Message (17 copies reported)
> 
> RegexpError (target of repeat operator is not specified: /@(.+.)?(mailinator.com|\*.ru)$/i)  
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> lib/validators/email\_validator.rb:15:in `validate_each' app/controllers/users_controller.rb:664:in `create’  
> app/controllers/application\_controller.rb:413:in `block in with_resolved_locale' app/controllers/application_controller.rb:413:in `with\_resolved\_locale’  
> lib/middleware/omniauth\_bypass\_middleware.rb:71:in `call' lib/content_security_policy/middleware.rb:12:in `call’  
> lib/middleware/anonymous\_cache.rb:368:in `call' config/initializers/100-quiet_logger.rb:23:in `call’  
> config/initializers/100-silence\_logger.rb:31:in `call' lib/middleware/enforce_hostname.rb:23:in `call’  
> lib/middleware/request\_tracker.rb:209:in `call’
> 
> Backtrace
> 
> lib/validators/email\_validator.rb:45:in `initialize' lib/validators/email_validator.rb:45:in `new’  
> lib/validators/email\_validator.rb:45:in `email_in_restriction_setting?' lib/validators/email_validator.rb:29:in `allowed?’  
> lib/validators/email\_validator.rb:15:in `validate_each' activemodel (7.0.3.1) lib/active_model/validator.rb:153:in `block in validate’  
> activemodel (7.0.3.1) lib/active\_model/validator.rb:149:in `each' activemodel (7.0.3.1) lib/active_model/validator.rb:149:in `validate’  
> activesupport (7.0.3.1) lib/active\_support/callbacks.rb:423:in `block in make_lambda' activesupport (7.0.3.1) lib/active_support/callbacks.rb:180:in `block (2 levels) in halting\_and\_conditional’
> 
> Env
> 
> HTTP HOSTS: [llastres.com](http://llastres.com)

---

<div class="post-metadata">

### Author: ![rorycb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/rorycb/32/423647_2.png) [@rorycb](https://meta.discourse.org/u/rorycb)
#### Post date: [January 7, 2023, 7:20pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/8 "2023-01-07T19:20:07Z")

</div>

I don’t have an answer for you, I don’t know the code well enough - but it seems like it is either something with the _blocked email domains_ setting (do you have anything in there?) or the _normalize emails_ setting if you’ve got that turned on?

Hopefully someone else has better knowledge of that code who can give you something more concrete.

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 7:39pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/9 "2023-01-07T19:39:45Z")

</div>

Hey Rory! Sorry, I was busy and can’t update. I empty `blocked email domains` and now It seems to work. I cleared the logs too. I’ll be monitoring the system for new warnings.

---

<div class="post-metadata">

### Author: ![Stephen](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/stephen/32/95011_2.png) [@Stephen](https://meta.discourse.org/u/Stephen)
#### Post date: [January 7, 2023, 8:49pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/10 "2023-01-07T20:49:50Z")

</div>

It would be helpful if you could share whatever was in the blocked emails domain field.

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 7, 2023, 9:24pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/11 "2023-01-07T21:24:44Z")

</div>

Two fields:

` mailinator.com`  
`*.ru`

---

<div class="post-metadata">

### Author: ![twofoursixeight](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/twofoursixeight/32/574822_2.png) [@twofoursixeight](https://meta.discourse.org/u/twofoursixeight)
#### Post date: [January 7, 2023, 11:58pm UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/12 "2023-01-07T23:58:10Z")

</div>

@undasein, I tried to create a new account on your forum and it worked on my end.  
[https://llastres.com/u/twofoursixeight/summary](https://llastres.com/u/twofoursixeight/summary)

---

<div class="post-metadata">

### Author: ![JammyDodger](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jammydodger/32/254611_2.png) [@JammyDodger](https://meta.discourse.org/u/JammyDodger)
#### Post date: [January 8, 2023, 6:12am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/13 "2023-01-08T06:12:44Z")

</div>

Just to link this up - @Stephen has created a #Contribute > Bug topic:

> [@Use of an asterisk in blocked email domains prevents registration from any email address](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/1):
>
> Per this topic: [Users can't make new account (register error)](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/) I’ve been testing various permutations of blocked email domains and ascertained that if an admin includes an asterisk as a wildcard then all registrations will fail. To replicate I added \*.mail.ru as a blocked domain on a test site. I tried to register from both a gmail account and a .co.uk - both attempts were met with: Something went wrong, perhaps this email is already registered, try the forgot password link Wildcards aren’t ne…

I’m glad you managed to resolve it for your site though @undasein 👍

> [@undasein](#):
>
> `mailinator.com`  
> `*.ru`

And if you remove the wildcard asterisk from `.ru` it should behave as you intended without blocking all sign ups.

---

<div class="post-metadata">

### Author: ![undasein](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/undasein/32/222392_2.png) [@undasein](https://meta.discourse.org/u/undasein)
#### Post date: [January 8, 2023, 7:32am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/14 "2023-01-08T07:32:52Z")

</div>

Thank you all for your help. Keep the good work!

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [February 7, 2023, 7:32am UTC](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/15 "2023-02-07T07:32:58Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
