mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-15 18:12:14 -05:00
[PR #2994] [MERGED] Fix recover-2fa not working. #21405
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 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.