# 管理员 2FA 禁用按钮的确认对话框

**URL:** https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039
**Category:** UX
**Tags:** completed
**Created:** [2024年十一月7日 20:27 UTC](https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039 "2024-11-07T20:27:21Z")
**Posts on this page:** 4
**Page:** 1

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2024年十一月7日 20:27 UTC](https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039/1 "2024-11-07T20:27:21Z")

</div>

如果能为管理员用户体验增加一个“您确定要从此用户处移除双重身份验证吗？”的确认对话框，那将是一个_极好_的改进，请将其添加到此“禁用”按钮上：

 ![Screenshot 2024-11-07 at 20.19.28](https://global.discourse-cdn.com/meta/original/4X/1/1/4/11446a7c5f3bde1ac3defa4aeb9731e31196423a.png)

这样我就不必向很多人反复道歉了，因为我本想在他们的个人资料上授予徽章，结果却因为鼠标点击位置低了 50px 而完全禁用了他们的账户安全 🤦🏻‍♂️

谢谢 😊

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2024年十一月8日 00:20 UTC](https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039/2 "2024-11-08T00:20:53Z")

</div>

这是一个合理的要求，我同意，最好为这里的此操作添加一个确认对话框。对于可能造成的任何不便，我深表歉意。我刚刚提交了一个 PR 来修复此问题：

> <https://github.com/discourse/discourse/pull/29652>
>
> \## :mag: Overview
> This PR ensures that admins are shown a confirmation dialog w…hen clicking to disable 2FA for a user. The 2FA button is right below the "Grant Badge" button and as such it can easily be clicked accidentally. It's also good practice to ask for confirmation before removing important functionality.
> 
> \## 🔗 More details
> As requested on Meta: 
> https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039
> 
> \## 📷 Screenshots
> \<img width="608" alt="Screenshot 2024-11-07 at 13 24 21" src="https://github.com/user-attachments/assets/32b74f4b-3fa1-4010-8bd6-6260abb703f4"\>

---

<div class="post-metadata">

### Author: ![Richie](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/richie/32/115110_2.png) [@Richie](https://meta.discourse.org/u/Richie)
#### Post date: [2024年十一月8日 08:37 UTC](https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039/3 "2024-11-08T08:37:07Z")

</div>

太棒了，感谢 @keegan 如此迅速的实现 👏 🥳

---

<div class="post-metadata">

### Author: ![keegan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/keegan/32/383395_2.png) [@keegan](https://meta.discourse.org/u/keegan)
#### Post date: [2024年十一月8日 18:30 UTC](https://meta.discourse.org/t/confirmation-dialog-on-admin-2fa-disable-button/335039/4 "2024-11-08T18:30:37Z")

</div>


