mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2026-07-16 02:22:14 -05:00
[PR #3390] [MERGED] Fix abort on pw reset mail error #8218
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/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.