Skip to content

Commit

Permalink
fix: incorrect accshield auth serialization
Browse files Browse the repository at this point in the history
  • Loading branch information
samfces committed Nov 24, 2022
1 parent 5a14785 commit 1abb7b4
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ public void sendSocketMessage(Authentication auth){
boolean shieldEnabled = (boolean) shieldSettings.getOrDefault("accshield", false);
if(!shieldEnabled) return;

Document finalDocument = new Document("username", auth.getUsername())
.append("type", auth.getAuthType().toString());
Document finalDocument = auth.serialize();
v4GuardCore.getInstance().getBackendConnector().getSocket().emit("accshield:login", finalDocument.toJson());
}
}

0 comments on commit 1abb7b4

Please sign in to comment.