[PR #2994] [MERGED] Fix recover-2fa not working. #12071

Closed
opened 2026-04-20 15:28:08 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/dani-garcia/vaultwarden/pull/2994
Author: @BlackDex
Created: 12/15/2022
Status: Merged
Merged: 12/18/2022
Merged by: @dani-garcia

Base: mainHead: issue-2985


📝 Commits (1)

  • 6154e03 Fix recover-2fa not working.

📊 Changes

3 files changed (+41 additions, -10 deletions)

View changed files

📝 src/api/core/two_factor/mod.rs (+8 -3)
📝 src/api/identity.rs (+11 -7)
📝 src/auth.rs (+22 -0)

📄 Description

When audit logging was introduced there entered a small bug preventing the recover-2fa from working.

This PR fixes that by add a new headers check to extract the device-type when possible and use that for the logging.

Fixes #2985


🔄 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/2994 **Author:** [@BlackDex](https://github.com/BlackDex) **Created:** 12/15/2022 **Status:** ✅ Merged **Merged:** 12/18/2022 **Merged by:** [@dani-garcia](https://github.com/dani-garcia) **Base:** `main` ← **Head:** `issue-2985` --- ### 📝 Commits (1) - [`6154e03`](https://github.com/dani-garcia/vaultwarden/commit/6154e03c05656aa2a6210f17454403bb46cb2917) Fix recover-2fa not working. ### 📊 Changes **3 files changed** (+41 additions, -10 deletions) <details> <summary>View changed files</summary> 📝 `src/api/core/two_factor/mod.rs` (+8 -3) 📝 `src/api/identity.rs` (+11 -7) 📝 `src/auth.rs` (+22 -0) </details> ### 📄 Description When audit logging was introduced there entered a small bug preventing the recover-2fa from working. This PR fixes that by add a new headers check to extract the device-type when possible and use that for the logging. Fixes #2985 --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-20 15:28:08 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/vaultwarden#12071