# 我能否强制现有成员在下次登录时重新注册？

**URL:** https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616
**Category:** Support
**Created:** [2025年八月21日 08:55 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616 "2025-08-21T08:55:40Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![matt\_smart](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@matt\_smart](https://meta.discourse.org/u/matt_smart)
#### Post date: [2025年八月21日 08:55 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/1 "2025-08-21T08:55:40Z")

</div>

我们有一个拥有10年历史的社区，我们需要更改通过“自定义/用户字段”收集的数据。我们需要添加新字段并删除一些字段——这对新用户来说没问题，但我们需要现有用户更新它们。

下次他们登录时，我希望能够强制（我不喜欢这个词）用户在继续之前更新字段。或者至少，让用户知道需要在特定日期之前完成，然后强制执行。

对此最好的解决方案是什么？

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [2025年八月21日 10:16 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/2 "2025-08-21T10:16:36Z")

</div>

#### 将字段设置为“所有用户必填”

在自定义用户字段中，有一个用于“显示在用户个人资料上”和“字段要求”的设置。如果将自定义字段设置为“所有用户必填”（Discourse 的最新版本添加了此选项），用户在尝试保存其个人资料或更新设置时，将提示他们填写必填字段。但是，这不会中断正常浏览，仅在他们进入用户偏好设置时触发。

~~ 
#### 基于自定义字段完成情况进行访问限制
 
- 创建一个名为“个人资料已完成”用户的组
- 设置 Discourse 自动化 ( [Adding users to groups through custom field automation](https://meta.discourse.org/t/adding-users-to-groups-through-custom-field-automation/275873) )
- 限制分类仅允许已完成个人资料的用户访问
- 使用“分类中的受限主题”主题组件 ( [Gated Topics in Category](https://meta.discourse.org/t/gated-topics-in-category/225454) ) 显示友好消息：“_您必须完成个人资料才能访问此区域。 [在此处更新您的个人资料。](https://yoursite.com/u/USERNAME/preferences)_”

 
#### 使用 Discourse Automation 插件向用户发送消息或提醒
 ~~

检测尚未完成字段的用户，并通过私信发送提醒。

---

<div class="post-metadata">

### Author: ![chapoi](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/chapoi/32/537252_2.png) [@chapoi](https://meta.discourse.org/u/chapoi)
#### Post date: [2025年八月21日 10:30 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/3 "2025-08-21T10:30:56Z")

</div>

> [@jahan\_gagan](#):
>
> 尝试保存其个人资料或更新设置的用户将被提示填写必填字段。但是，这不会中断正常浏览，并且仅在他们进入用户偏好设置时触发。

这是不正确的。模态窗口清楚地警告您：

 ![CleanShot 2025-08-21 at 12.28.57](https://global.discourse-cdn.com/meta/original/4X/c/2/b/c2b0989ae2f2cf84a29a5660fa642db110e0a7f3.png)

并且在登录时会显示：

 ![CleanShot 2025-08-21 at 12.29.48@2x](https://global.discourse-cdn.com/meta/original/4X/c/0/2/c0271e31e0552638145b3cfd84f49cf48d16acda.png)

并且在执行此操作之前，该网站是可用的。

所以是的，“字段要求”设置是正确的方法，但您不需要其他设置来强制执行它。

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [2025年八月21日 10:49 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/4 "2025-08-21T10:49:31Z")

</div>

啊，我猜之前是那样的——是我的错。感谢您的澄清。

---

<div class="post-metadata">

### Author: ![matt\_smart](https://avatars.discourse-cdn.com/v4/letter/m/3ab097/32.png) [@matt\_smart](https://meta.discourse.org/u/matt_smart)
#### Post date: [2025年八月21日 10:51 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/5 "2025-08-21T10:51:02Z")

</div>

如果这么简单，那它就能完美运行。但我该如何修改那个提示以匹配我们的 TOV 呢？

---

<div class="post-metadata">

### Author: ![jahan\_gagan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/jahan_gagan/32/501948_2.png) [@jahan\_gagan](https://meta.discourse.org/u/jahan_gagan)
#### Post date: [2025年八月21日 11:00 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/6 "2025-08-21T11:00:06Z")

</div>

您可以通过进入 Discourse 中的 **Admin → Customize → Site Text** 来轻松更新任何 UI 文本。有关完整指南，请参阅官方站点文本指南。

> [@Customize text in Discourse](https://meta.discourse.org/t/customize-text-in-discourse/36092):
>
> bookmark This is a guide for customizing text in Discourse via the admin interface, enabling changes to various UI elements. person_raising_hand Required user level: Administrator In Discourse, you can customize all of the text via the admin interface. This can be useful for tailoring the user experience to better fit the particular tone or branding of your community. Summary This guide will cover: Accessing the text customization interface Editing text strings Identifying translatio…

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [2025年九月20日 11:00 UTC](https://meta.discourse.org/t/can-i-force-existing-members-to-re-register-when-they-next-log-in/379616/7 "2025-09-20T11:00:31Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
