diff --git a/src/account/account.rs b/src/account/account.rs index c937c2d..cfa4b76 100644 --- a/src/account/account.rs +++ b/src/account/account.rs @@ -230,6 +230,11 @@ impl<'r, const FORCE_BEARER_AUTH: bool> FromRequest<'r> for Auth16}", user.nex_password), + ..user + }; Outcome::Success(Self(user)) } diff --git a/src/graphql/mod.rs b/src/graphql/mod.rs index 4e4a9a0..d58b496 100644 --- a/src/graphql/mod.rs +++ b/src/graphql/mod.rs @@ -126,6 +126,8 @@ impl Query { return None; } }; + + let nex_password = format!("{:a>16}",user.nex_password); Some(UserInfo { username: user.username, @@ -149,6 +151,8 @@ impl Query { .await .ok()?; + let nex_password = format!("{:a>16}",user.nex_password); + Some(UserInfo { username: user.username, account_level: user.account_level, diff --git a/src/nnid/provider.rs b/src/nnid/provider.rs index e46858b..a1aa3cd 100644 --- a/src/nnid/provider.rs +++ b/src/nnid/provider.rs @@ -101,6 +101,8 @@ pub async fn get_nex_token(pool: &State, auth: Auth, game_server_id: let host = host.ip(); + + Ok( Xml( NexToken{