# 无法结束强制启用双因素认证用户的模拟会话

**URL:** https://meta.discourse.org/t/unable-to-end-impersonation-for-2fa-enforced-user/411486
**Category:** Bug
**Tags:** impersonate, 2fa, fixed
**Created:** [2026年九月2日 16:13 UTC](https://meta.discourse.org/t/unable-to-end-impersonation-for-2fa-enforced-user/411486 "2026-09-02T16:13:00Z")
**Posts on this page:** 1
**Showing post:** 5

<div class="post-metadata">

### Author: ![Alteras](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/alteras/32/179824_2.png) [@Alteras](https://meta.discourse.org/u/Alteras)
#### Post date: [2026年九月2日 21:58 UTC](https://meta.discourse.org/t/unable-to-end-impersonation-for-2fa-enforced-user/411486/5 "2026-09-02T21:58:08Z")

</div>

已修复！

> <https://github.com/discourse/discourse/pull/43137>
>
> Fixes an edge case where an user can get stuck impersonating another user withou…t 2FA, when 2FA enforcement is enabled. The impersonation correctly shows the user can only interact with UI elements for adding 2FA. But this restriction extends to the closing the impersonation session.
> 
> This commit fixes this by ensuring the DELETE /admin/impersonate endpoint is always accessible.

---

_[View the full topic](https://meta.discourse.org/t/unable-to-end-impersonation-for-2fa-enforced-user/411486)._
