# 用户注册后未验证邮箱会怎样？

**URL:** <https://meta.discourse.org/t/what-happens-when-a-user-does-not-verify-email-after-signing-up/284379>\
**Category:** Product Support\
**Created:** [2023 年11 月 4 日 03:00 UTC](https://meta.discourse.org/t/what-happens-when-a-user-does-not-verify-email-after-signing-up/284379 "2023-11-04T03:00:21Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

作者： ![Lilly](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/lilly/32/575047_2.png) [@Lilly](https://meta.discourse.org/u/Lilly)\
发布日期： [2023 年11 月 4 日 03:57 UTC](https://meta.discourse.org/t/what-happens-when-a-user-does-not-verify-email-after-signing-up/284379/3 "2023-11-04T03:57:25Z")

</div>

> [@noel](#):
>
> 我想知道如果用户不验证他们的电子邮件地址会发生什么？

你好 @noel 👋

`email_token_valid_hours` 管理员设置决定了用户验证其帐户或重置密码的时间范围。

如果用户未在指定时间内验证其帐户，他们收到的电子邮件中的令牌将过期。这意味着他们收到的用于激活帐户或重置密码的链接将不再有效，用户需要请求新的激活电子邮件或密码重置电子邮件。这将生成一个新的令牌并重新开始 `email_token_valid_hours` 设置定义的验证期。默认值为 48 小时。

 ![IMG_1168](https://global.discourse-cdn.com/meta/original/4X/f/4/c/f4cb6b1dc5ea0e851dd570bf1bc08dcc8f8af82d.jpeg)

可能还值得了解一下 `purge_unactivated_users_grace_period_days` 设置，该设置决定了在未激活帐户的用户被删除之前的天数。

 ![IMG_1170](https://global.discourse-cdn.com/meta/original/4X/4/a/f/4af326f471948f663be354f8fb5fae65ed781e25.jpeg)

此设置的默认值为 14 天，因此如果用户注册帐户但在 14 天内未激活，该帐户将被自动删除。

但是，可以根据论坛的需求调整此设置。如果将其设置为 0，则未激活的用户将永远不会被清除。

请注意，此设置不适用于员工 - 即使员工帐户在指定的宽限期内未激活，也不会被清除。

---

_[View the full topic](https://meta.discourse.org/t/what-happens-when-a-user-does-not-verify-email-after-signing-up/284379)._
