fix: made hashing error a bit more descriptive

This commit is contained in:
NinekoTheCat 2023-12-25 01:13:01 +01:00
parent 1e31761335
commit 6fcac572d2
No known key found for this signature in database
GPG key ID: 700DB3F678A4AB66

View file

@ -76,7 +76,7 @@ pub async fn login_route(body: Ruma<login::v3::Request>) -> Result<login::v3::Re
));
}
let Ok(parsed_hash) = PasswordHash::new(&hash) else {
error!("error while hashing");
error!("error while hashing user {}", user_id);
return Err(Error::BadServerResponse("could not hash"));
};
let hash_matches = services()