配置和管理带有用户批准的注册流程

:bookmark: This guide explains the sign-up process when the “must approve users” setting is enabled, including configuration steps and the user experience.

:person_raising_hand: Required user level: Administrator

When you want to control who can join your Discourse community, you can enable a setting that requires new users to be approved before they can log in. This feature is commonly used for private communities or public forums that want to limit participation.

Configuring user approval

To set up user approval for your Discourse site:

  1. Enable the must_approve_users site setting.

  2. (Optional) If you want to make your community private, enable the login_required site setting. This prevents anonymous users from viewing your forum’s content.

User sign-up process

Once you’ve enabled user approval, here’s what the sign-up process looks like for new users:

  1. The user visits your forum and clicks the “Sign Up” button.

  2. The user enters their account details and receives an activation email.

  3. After activating their email, the user sees this message on the forum:

    Welcome to Discourse!

    A moderator must manually approve your new account before you can access this forum. You’ll get an email when your account is approved!

    If the user attempts to log in before approval, they’ll see this message:

    Your account hasn’t been approved yet. You will be notified by email when you are ready to log in.

Moderator approval process

  1. Moderators receive on-site notifications for pending user approvals.

  2. If a request remains in the review queue, a reminder email is sent to all users with full Moderator status. The reminder email is managed by the PendingUsersReminder background job, which runs hourly but can be delayed using the pending users reminder delay site setting.

  3. Once a staff member approves a user, the user receives an email notification.

Additional resources

Last edited by @hugh 2024-07-05T01:35:58Z

Check documentPerform check on document:
16 个赞

9 篇帖子已拆分为新主题:Signup email not being sent

3个帖子被拆分到一个新主题:更改“必须批准用户”是否会影响现有用户?

关于 must_approve_users 站点设置。

鉴于在 Does changing ‘must approve users’ effect existing users? - #2 by Moin 提供的信息

启用该设置时,所有现有用户都将被标记为已批准。

是否可以更新上面文档中的截图:

以移除警告,就像在:

中的截图一样。

可能还可以在文档中添加文字“启用 must_approve_users 设置时,所有现有用户都将被标记为已批准。”以澄清结果。

1 个赞

作为版主,以前有新用户需要审核时,我会在 discourse 的“收件箱”中收到消息。现在它们作为主题出现在我的“Staff”类别中。我希望它们是消息,而不是弄乱我“Staff”中的新主题列表。我该如何实现?

我认为这在 4 年前就已经更改了(PR)。该设置为 pending users reminder delay minutes,后台作业每 5 分钟运行一次。

您能分享更多细节吗?我尝试重现它,但待处理的用户提醒 PM 仍发送给了最近最活跃的版主。
我以为您在谈论关于待审核项的提醒,但那个也没有发布在 staff 类别中。它是发送到版主组的收件箱。

感谢您的回复。这是我的员工类别目前的截图。所有“新用户……需要审核”的消息都应该出现在我的收件箱中,而不是作为员工类别中的主题。我对 Discourse 是新手,所以可能是我设置了某个选项导致了这种情况,但我就是找不到我做了什么。

[图片已隐藏以保护个人信息]

:thinking: 这些看起来不像 Discourse 核心要求的审核消息。

那些看起来像这样:

你的看起来像这样:

用户 X 刚刚注册了 Fornax Science Console 账户

新用户 Y 的注册请求需要审核才能访问 Fornax Science Console

你似乎使用了 openid-connect 而不是 Discourse 的注册流程。因此,我认为这个文档主题对你没有帮助。你看到的消息与 must_approve_users 无关。

谢谢,这有助于了解下一步该往哪里看。