mirror of
https://github.com/modrinth/code.git
synced 2026-09-02 13:05:50 +00:00
Harden minecraft-server-play analytics (#5484)
* Harden minecraft-server-play analytics * Verify based on mc token * Fail for non-server projects * Nitpicks and factor out HTTP client * Allow passing old minecraft_uuid field for clients * Remove server play analytics test since it relies on auth against Minecraft API which I don't want to mock :( * Switch to using hasJoined for uuid validation * Fix formatting * Fix sessionserver status code * Ensure profile name and queried username matches * replace some wrap_request_errs with internal errs * add HTTP client into web::Data * short timeout on client-side session join query * further fixes * sqlx prepare * fix clippy --------- Co-authored-by: Creeperkatze <178587183+Creeperkatze@users.noreply.github.com> Co-authored-by: aecsocket <aecsocket@tutanota.com>
This commit is contained in:
co-authored by
Creeperkatze
aecsocket
parent
4a0c610fc5
commit
73abe272d1
@@ -10,6 +10,7 @@ pub mod error;
|
||||
pub mod ext;
|
||||
pub mod gotenberg;
|
||||
pub mod guards;
|
||||
pub mod http;
|
||||
pub mod img;
|
||||
pub mod ip;
|
||||
pub mod ratelimit;
|
||||
|
||||
Reference in New Issue
Block a user