[PR #6852] [MERGED] hide remember 2fa token #3859

Closed
opened 2026-03-03 10:38:09 +03:00 by kerem · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/6852
Author: @stefan0xC
Created: 2/19/2026
Status: Merged
Merged: 2/23/2026
Merged by: @BlackDex

Base: mainHead: hide-2fa-remember


📝 Commits (1)

📊 Changes

2 files changed (+8 additions, -0 deletions)

View changed files

📝 src/api/web.rs (+1 -0)
📝 src/static/templates/scss/vaultwarden.scss.hbs (+7 -0)

📄 Description

when DISABLE_2FA_REMEMBER=true there is no reason to show the checkbox to remember the second factor for 30 days as it should not do anything (as discussed in #6849).
image

I have not checked if this works with all 2FA providers and I plan to also make this position independent in the next web-vault release to make sure that this does not hide the wrong element


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/dani-garcia/vaultwarden/pull/6852 **Author:** [@stefan0xC](https://github.com/stefan0xC) **Created:** 2/19/2026 **Status:** ✅ Merged **Merged:** 2/23/2026 **Merged by:** [@BlackDex](https://github.com/BlackDex) **Base:** `main` ← **Head:** `hide-2fa-remember` --- ### 📝 Commits (1) - [`642d3e5`](https://github.com/dani-garcia/vaultwarden/commit/642d3e553c86165e5c198f3980118f2372dabd9a) hide remember 2fa token ### 📊 Changes **2 files changed** (+8 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `src/api/web.rs` (+1 -0) 📝 `src/static/templates/scss/vaultwarden.scss.hbs` (+7 -0) </details> ### 📄 Description when `DISABLE_2FA_REMEMBER=true` there is no reason to show the checkbox to remember the second factor for 30 days as it should not do anything (as discussed in #6849). <img width="531" height="297" alt="image" src="https://github.com/user-attachments/assets/185166cd-0717-43c6-be00-11f07f0e6bcd" /> I have not checked if this works with all 2FA providers and I plan to also make this position independent in the next web-vault release to make sure that this does not hide the wrong element --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
kerem 2026-03-03 10:38:09 +03:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/vaultwarden#3859
No description provided.