Changing a user's email address when they can't access their account

:bookmark: This guide explains how to change a user’s email address when they can’t access their original email account and have forgotten their password.

:person_raising_hand: Required user level: Administrator

There are situations where you may need to change a user’s email address on their behalf, such as when they no longer have access to the email associated with their account. This often occurs after migrating from a preexisting system where users logged in with a username and password.

Changing the email address

To change a user’s email address:

  1. Go to the user’s preferences page as if you were that user.
    • You can access any user’s preference page by placing their username in this URL: https://discourse.example.com/u/USERNAME/preferences/.
  2. Click the button to show their email address.
  3. Click the pencil button next to the email address.
  4. Enter the new email address and click ‘change’ to update it.

:information_source: For regular users, only the new email address needs to be verified by default. If the require_change_email_confirmation site setting is enabled, both old and new email addresses must be verified.

:warning: For staff members (admins and moderators), both the old and new email addresses must be verified for security reasons. If a staff member has lost access to their old email, you’ll need to temporarily remove their admin/mod privileges before resetting their email, or use the Rails console method described below.

Alternative method: Using the Rails console

If you need to skip verification of the new email address or change a staff member’s email, you can use the Rails console method.

For detailed instructions on this method, refer to this guide on changing staff email addresses from the console.

Reset password dialog

Discourse provides hints in the reset password dialog for users who have lost access to their original email address:

When users click the help button, they see this dialog:

The “our helpful staff” link directs users to the /about page of your site. To ensure users can contact you this way, make sure to provide contact information on the /about page.

You can customize the text of this dialog by going to /admin/customize/site_texts.

Last edited by @hugh 2024-07-05T01:16:48Z

Last checked by @hugh 2024-07-05T01:16:52Z

Check documentPerform check on document:
15개의 좋아요

거의 이런 상황에 있는 사용자가 있습니다. 다만 현재 로그인되어 있다는 점이 다릅니다. 하지만 더 이상 주 이메일 계정에 접근할 수 없습니다.

이차 이메일 주소를 추가한 후 주 이메일 주소를 제거할 수 있는 방법이 있을까요? 아니면 그 과정에서 잠금 처리가 될까요?

또한, 위 문서를 제가 이해한 바로는 관리자에게 연락한 사람이 실제로 본인임을 단순히 신뢰하는 것뿐인가요? 누구나 아무 계정이든 새 이메일로 변경해 달라고 요청한 뒤 이를 탈취할 수 있는 것처럼 보입니다. 제가 무언가를 놓치고 있는 건가요?

요청을 신뢰한다면, 그렇게 하면 됩니다. 하지만 신뢰할지 여부는 전적으로 사용자에게 달려 있습니다.

일론 포럼은 친구, 클럽, 회사 등 관리자가 모든 사람을 알고 있거나 신원을 확인할 수 있는 방법을 가지고 있을 수 있는 곳입니다. 서로 거리가 먼 다양한 사용자들로 이루어진 포럼에서는 그렇게 하지 않을 것 같습니다.

1개의 좋아요

맞아요.

이메일을 통해 인증하는 웹사이트라면 어디든 이런 문제가 생길 수 있겠죠. 인증 정보를 잃으면 계정까지 잃게 됩니다.

이번에는 해당 사용자가 이차 이메일을 추가해 달라고 요청했습니다(요청 당시에는 여전히 로그인된 상태였습니다). 그 다음, 분실된 주 이메일 주소를 삭제하도록 했습니다.

2개의 좋아요