vw_small

Hardened fork of Vaultwarden (https://github.com/dani-garcia/vaultwarden) with fewer features.
git clone https://git.philomathiclife.com/repos/vw_small
Log | Files | Refs | README

commit 525e6bb65a6926e0f9de3fc5dafd5c5b63981f9f
parent 3646f14042337290ee3b8f661cc058cb69f52ce1
Author: Daniel GarcĂ­a <dani-garcia@users.noreply.github.com>
Date:   Mon, 27 Mar 2023 09:32:25 +0200

Merge pull request #3376 from jjlin/knowndevices-nopad

Decode knowndevice `X-Request-Email` as base64url with no padding
Diffstat:
Msrc/api/core/accounts.rs | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/api/core/accounts.rs b/src/api/core/accounts.rs @@ -899,7 +899,7 @@ impl<'r> FromRequest<'r> for KnownDevice { async fn from_request(req: &'r Request<'_>) -> Outcome<Self, Self::Error> { let email = if let Some(email_b64) = req.headers().get_one("X-Request-Email") { - let email_bytes = match data_encoding::BASE64URL.decode(email_b64.as_bytes()) { + let email_bytes = match data_encoding::BASE64URL_NOPAD.decode(email_b64.as_bytes()) { Ok(bytes) => bytes, Err(_) => { return Outcome::Failure((