🔄 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>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
📋 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:
main← Head:issue-2985📝 Commits (1)
6154e03Fix 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.