mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-17 09:22:30 -05:00
[PR #5176] [MERGED] More authrequest fixes #25781
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/5176
Author: @dani-garcia
Created: 11/11/2024
Status: ✅ Merged
Merged: 11/11/2024
Merged by: @BlackDex
Base:
main← Head:more_authrequest_fixes📝 Commits (1)
c4cdfd7More authrequest fixes📊 Changes
2 files changed (+47 additions, -36 deletions)
View changed files
📝
src/api/core/accounts.rs(+13 -10)📝
src/api/identity.rs(+34 -26)📄 Description
We were checking the user uuid against the authrequest uuid, which would always fail and error out.
Fixes https://github.com/dani-garcia/vaultwarden/issues/5174
I've also noticed that we were rotating the user password hash when login in with auth request (where instead of the password, a randomly generated access code is used), this could lead to inoperable accounts.
Also tried to delete the auth requests after they were used or denied, rather than waiting for the timer to clear them up.
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.