# 邀请已过期时用户无法登录

**URL:** <https://meta.discourse.org/t/users-not-able-to-login-in-when-invitation-has-expired/216814>\
**Category:** Bug\
**Tags:** invites\
**Created:** [2022 年2 月 2 日 09:14 UTC](https://meta.discourse.org/t/users-not-able-to-login-in-when-invitation-has-expired/216814 "2022-02-02T09:14:37Z")\
**Posts on this page:** 1\
**Showing post:** 6

<div class="post-metadata">

作者： ![dan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/dan/32/101549_2.png) [@dan](https://meta.discourse.org/u/dan)\
发布日期： [2022 年2 月 4 日 16:31 UTC](https://meta.discourse.org/t/users-not-able-to-login-in-when-invitation-has-expired/216814/6 "2022-02-04T16:31:52Z")

</div>

我尝试重现此 bug，但未成功。可能是因为我遗漏了某个细节，或者此 bug 已在此提交中修复：

> <https://github.com/discourse/discourse/commit/820564826e99791b1dae361f3efb6106146d4bd0>
>
> In the unlikely, but possible, scenario where a user has no email\_tokens, and ha…s an invite record for their email address, login would fail. This commit fixes the \`Invite\` \`user\_doesnt\_already\_exist\` validation so that it only applies to new invites, or when changing the email address.
> 
> This regressed in d8fe0f4199b5bb44fa79fa489586b4029289242c (based on \`git bisect\`)

您上次更新是什么时候？

---

_[View the full topic](https://meta.discourse.org/t/users-not-able-to-login-in-when-invitation-has-expired/216814)._
