1
0
Fork 1
Spiegel von https://github.com/dani-garcia/vaultwarden.git synchronisiert 2024-11-22 05:10:29 +01:00
vaultwarden/src
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
..
api Fix password reset issues 2023-03-30 09:41:13 +02:00
db Merge ClientIp with Headers. 2023-03-11 16:58:32 +01:00
static Admin token Argon2 hashing support 2023-03-04 16:15:30 +01:00
auth.rs add endpoint to bulk delete collections 2023-03-23 00:26:28 +01:00
config.rs Admin token Argon2 hashing support 2023-03-04 16:15:30 +01:00
crypto.rs Remove get_random_64() 2022-11-13 10:03:06 +01:00
error.rs Cleanups and Fixes for Emergency Access 2022-12-04 23:17:48 +01:00
mail.rs Add support for sendmail as a mail transport 2023-02-12 18:54:59 +01:00
main.rs Some small fixes and updates 2023-03-25 12:51:42 +01:00
ratelimit.rs Basic ratelimit for user login (including 2FA) and admin login 2021-12-22 21:48:49 +01:00
util.rs Some small fixes and updates 2023-03-25 12:51:42 +01:00