Skip to content

Do not print login packets to the console - #62

Closed
expanderbult wants to merge 1 commit into
gurotopia:masterfrom
expanderbult:hide-login-packets
Closed

expanderbult wants to merge 1 commit into
gurotopia:masterfrom
expanderbult:hide-login-packets

Conversation

@expanderbult

Copy link
Copy Markdown
Contributor

The server printed every text packet, including logins with the password in plain text.

The server printed every text packet, including logins with the password in plain text.
@codacy-production

Copy link
Copy Markdown

Up to standards ✅

🟢 Issues 0 issues

Results:
0 new issues

View in Codacy

🟢 Metrics 0 complexity · 0 duplication

Metric Results
Complexity 0
Duplication 0

View in Codacy

NEW Get contextual insights on your PRs based on Codacy's metrics, along with PR and Jira context, without leaving GitHub. Enable AI reviewer
TIP This summary will be updated as you push new changes.

@leeendl
leeendl self-requested a review October 3, 2026 22:24
{
std::string header{data.begin() + 4, data.end() - 1};
puts(header.c_str());
if (header.find("password") == std::string::npos && header.find("ltoken|") == std::string::npos) puts(header.c_str()); // @note never print logins, they contain passwords

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

respectfully this is useful for debugging so i will not merge this. thank you.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

very true

@leeendl leeendl left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

bad for debugging ltoken and login information.

@leeendl leeendl closed this Oct 3, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants