mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-02-05 08:39:46 +03:00
[PR #3006] [MERGED] Fix a panic during Yubikey register/login #3177
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/3006
Author: @BlackDex
Created: 12/18/2022
Status: ✅ Merged
Merged: 12/18/2022
Merged by: @dani-garcia
Base:
main← Head:fix-yubikey-panic📝 Commits (1)
b60a4a6Fix a panic during Yubikey register/login📊 Changes
2 files changed (+9 additions, -7 deletions)
View changed files
📝
src/api/core/two_factor/yubikey.rs(+8 -6)📝
src/api/identity.rs(+1 -1)📄 Description
The yubico crate uses blocking reqwest, and we called the
verifyfrom a async thread. To prevent issues we need to wrap it within aspawn_blocking.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.