# Uso de asterisco em domínios de e-mail bloqueados impede o registro de qualquer endereço de e-mail

**URL:** https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024
**Category:** Bug
**Created:** [Janeiro 7, 2023, 10:37pm UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024 "2023-01-07T22:37:34Z")
**Posts on this page:** 1
**Showing post:** 7

<div class="post-metadata">

### Author: ![selase](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/selase/32/270909_2.png) [@selase](https://meta.discourse.org/u/selase)
#### Post date: [Janeiro 20, 2023, 11:44am UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/7 "2023-01-20T11:44:42Z")

</div>

@Stephen Obrigado pelo relatório. Isso foi corrigido.

> <https://github.com/discourse/discourse/pull/19922>
>
> Specifying wildcard characters which also happen to be regex meta characters for… \`auto\_approve\_email\_domains\`, \`allowed\_email\_domains\` and \`blocked\_email\_domains\` site settings currently breaks email validation.
> 
> This change prevents these characters from being specified for these site settings. It does this by switching the site setting type from \`list\` to \`host\_list\`. The \`host\_list\` validator checks for these characters.
> 
> In addition, this change also improves the site setting descriptions and introduces a migration to fix existing records.

---

_[View the full topic](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024)._
