mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-04-26 01:35:54 +03:00
[PR #3390] [MERGED] Fix abort on pw reset mail error #3279
Labels
No labels
SSO
Third party
better for forum
bug
bug
documentation
duplicate
enhancement
future Vault
future Vault
future Vault
good first issue
help wanted
low priority
notes
pull-request
question
troubleshooting
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/vaultwarden#3279
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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/3390
Author: @BlackDex
Created: 3/29/2023
Status: ✅ Merged
Merged: 4/2/2023
Merged by: @dani-garcia
Base:
main← Head:fix-abort-pw-reset-on-mail-error📝 Commits (1)
2cda54cFix password reset issues📊 Changes
1 file changed (+7 additions, -3 deletions)
View changed files
📝
src/api/core/organizations.rs(+7 -3)📄 Description
There was used a wrong macro to produce an error message when mailing
the user his password was reset failed. It was using
error!()whichdoes not return an
Errand aborts the rest of the code.This resulted in the users password still being resetted, but not being
notified. This PR fixes this by using
err!(). Also, do not set theuser object as mutable until it really is needed.
Second, when a user was using the new Argon2id KDF with custom values
like memory and parallelism, that would have rendered the password
incorrect. The endpoint which should return all the data did not
returned all the new Argon2id values. (Thanks to @stefan0xC for spotting the specific culprit).
Fixes #3388
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.