# 전체 사이트 비밀번호 재설정 워크플로

**URL:** https://meta.discourse.org/t/password-resetting-workflow-for-an-entire-site/343145
**Category:** Support
**Created:** [12월 18, 2024, 11:04오전 UTC](https://meta.discourse.org/t/password-resetting-workflow-for-an-entire-site/343145 "2024-12-18T11:04:44Z")
**Posts on this page:** 1
**Showing post:** 4

<div class="post-metadata">

### Author: ![Canapin](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/canapin/32/119591_2.png) [@Canapin](https://meta.discourse.org/u/Canapin)
#### Post date: [12월 21, 2024, 11:57오전 UTC](https://meta.discourse.org/t/password-resetting-workflow-for-an-entire-site/343145/4 "2024-12-21T11:57:33Z")

</div>

> [@alehandrof](#):
>
> 다른 사람이 아이디어를 제시할지 확인하기 위해 문제를 조금 더 열어두겠습니다.

“reset password rails” 검색 쿼리는 다음을 반환했습니다:

> [@Send password reset emails in bulk?](https://meta.discourse.org/t/send-password-reset-emails-in-bulk/241012/7?u=cocoquark):
>
> Just rectifying here - that script does work. I just had to: cd /var/discourse sudo ./launcher enter app Then create the file: // create file touch password.rb Then add the following code: email\_token = nil User.all.each do |u| email\_token = u.email\_tokens.create(email: u.email) Jobs.enqueue(:critical\_user\_email, type: :forgot\_password, user\_id: u.id, email\_token: email\_token.token) sleep(5) end And finally, run it: rails r password.rb It did work for me slight_smile.

시해 보았고 실제로 작동합니다.

사용자가 왜 이 비밀번호 재설정 이메일을 받는지 설명하기 위해 `user_notifications.forgot_password.subject_template`(이메일 본문)과 `user_notifications.forgot_password.text_body_template`(이메일 제목) 문자열을 임시로 수정하는 것을 권장합니다.

또한 속도 제한(rate limits)에 주의해야 합니다. 다른 토픽의 스크립트에 있는 5초 대기 시간이 충분한지 모르겠습니다.

---

_[View the full topic](https://meta.discourse.org/t/password-resetting-workflow-for-an-entire-site/343145)._
