1
0
Fork 0
vaultwarden-test/src/api/core
BlackDex 2cda54ceff
Fix password reset issues
There was used a wrong macro to produce an error message when mailing
the user his password was reset failed. It was using `error!()` which
does not return an `Err` and 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 the
user 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.

Fixes #3388

Co-authored-by: Stefan Melmuk <509385+stefan0xC@users.noreply.github.com>
2023-03-30 09:41:13 +02:00
..
two_factor Merge ClientIp with Headers. 2023-03-11 16:58:32 +01:00
accounts.rs Decode knowndevice X-Request-Email as base64url with no padding 2023-03-27 00:03:54 -07:00
ciphers.rs Merge ClientIp with Headers. 2023-03-11 16:58:32 +01:00
emergency_access.rs Fix the web-vault v2023.2.0 API calls 2023-02-27 16:37:58 +01:00
events.rs Merge ClientIp with Headers. 2023-03-11 16:58:32 +01:00
folders.rs Update WebSocket Notifications 2022-12-31 20:39:53 +01:00
mod.rs Fix the web-vault v2023.2.0 API calls 2023-02-27 16:37:58 +01:00
organizations.rs Fix password reset issues 2023-03-30 09:41:13 +02:00
sends.rs Resolve uninlined_format_args clippy warnings 2023-01-09 19:17:13 +01:00