# 차단된 이메일 도메인에서 아스터리스크(\*) 사용 시 모든 이메일 주소로 가입 불가

**URL:** https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024
**Category:** Bug
**Created:** [1월 7, 2023, 10:37오후 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:** 5
**Page:** 1

<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: [1월 7, 2023, 10:37오후 UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/1 "2023-01-07T22:37:35Z")

</div>

이 주제에 따르면: [Users can't make new account (register error)](https://meta.discourse.org/t/users-cant-make-new-account-register-error/251002/)

차단된 이메일 도메인의 다양한 조합을 테스트해 본 결과, 관리자가 와일드카드로 별표(\*)를 포함하면 모든 등록이 실패하는 것을 확인했습니다.

재현을 위해 테스트 사이트에 \*.mail.ru를 차단된 도메인으로 추가했습니다. gmail 계정과 .co.uk 계정으로 모두 등록을 시도해 보았으나, 두 시도 모두 다음과 같은 오류가 발생했습니다: `무언가 잘못되었습니다. 이 이메일은 이미 등록되었을 수 있으니 비밀번호를 잊으셨다면 해당 링크를 시도해 보세요`

해당 필드에서 와일드카드는 필요하지 않으며, `mail.ru`만 입력해도 모든 하위 도메인(`*.mail.ru`)이 이미 차단됩니다.

---

<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: [1월 12, 2023, 5:05오후 UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/2 "2023-01-12T17:05:07Z")

</div>

추가로 관찰된 두 가지 사항:

- 위의 방법으로 사용자를 초대하는 것은 여전히 가능하며, 이메일 주소가 수락되고 초대가 전송됩니다

- 단,

- 초대를 수락할 수 없으며, 대신 500 오류가 반환됩니다

---

<div class="post-metadata">

### Author: ![zogstrip](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/zogstrip/32/512781_2.png) [@zogstrip](https://meta.discourse.org/u/zogstrip)
#### Post date: [1월 16, 2023, 1:24오후 UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/5 "2023-01-16T13:24:20Z")

</div>

@Stephen님, 보고해 주셔서 감사합니다. 해당 문제는 추적 중이며, 이 사이트 설정에서 와일드카드 문자를 사용할 수 없도록 하도록 엔지니어에게 배정되었습니다.

---

<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: [1월 20, 2023, 11:44오전 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 보고해 주셔서 감사합니다. 수정되었습니다.

> <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.

---

<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: [1월 20, 2023, 11:44오전 UTC](https://meta.discourse.org/t/use-of-an-asterisk-in-blocked-email-domains-prevents-registration-from-any-email-address/251024/8 "2023-01-20T11:44:51Z")

</div>


