# 이메일 주소 변경 시 내부 서버 오류 발생

**URL:** https://meta.discourse.org/t/users-getting-internal-server-error-when-trying-to-change-email-address/350416
**Category:** Bug
**Created:** [2월 4, 2025, 11:34오전 UTC](https://meta.discourse.org/t/users-getting-internal-server-error-when-trying-to-change-email-address/350416 "2025-02-04T11:34:20Z")
**Posts on this page:** 1
**Showing post:** 9

<div class="post-metadata">

### Author: ![davidb](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/davidb/32/554671_2.png) [@davidb](https://meta.discourse.org/u/davidb)
#### Post date: [5월 9, 2025, 9:27오전 UTC](https://meta.discourse.org/t/users-getting-internal-server-error-when-trying-to-change-email-address/350416/9 "2025-05-09T09:27:33Z")

</div>

이 문제는 다음 커밋으로 수정되었습니다:

> <https://github.com/discourse/discourse/commit/b28df068fc9757a63c8792748228ff167973dae4>
>
> Previously when changing back to the same email (ie. change to new
> email, then c…hange back again) we can easily end up showing the
> incorrect old email if changing back to the same email more than once.
> Then passing the incorrect old email causes an error as it can't be found.
> 
> This happens because we only searched for a combination of \`user\_id\` and
> \`new\_email\` which can load an older change from the database. By using
> the current email address when finding / initializing the
> \`EmailChangeRequest\` we can prevent this issue as we will be creating a
> new entry rather than loading an outdated one.

확인되지 않은 이메일 변경 사항이 있는 경우, 사용자 설정 페이지(예: `/my/preferences/account`)에서 확인되지 않은 이메일 옆의 렌치 아이콘을 클릭한 뒤 **이메일 삭제** 를 눌러 먼저 삭제하는 것을 권장합니다.

이후 이메일 변경 절차를 다시 시작하면 이번에는 정상적으로 작동할 것으로 기대됩니다.

---

_[View the full topic](https://meta.discourse.org/t/users-getting-internal-server-error-when-trying-to-change-email-address/350416)._
