mirror of
https://github.com/dani-garcia/vaultwarden.git
synced 2025-12-06 09:13:03 +03:00
[PR #3390] Fix abort on pw reset mail error #3015
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?
Original Pull Request: https://github.com/dani-garcia/vaultwarden/pull/3390
State: closed
Merged: Yes
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