Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(download): restore password verification #79

Merged
merged 7 commits into from
Jan 20, 2024
Merged

fix(download): restore password verification #79

merged 7 commits into from
Jan 20, 2024

Conversation

diamante0018
Copy link
Contributor

Old feature by momo, his old code didn't work because he forgot to to call dump hex on the server password.
I removed it during the great refactoring of download.cpp when we upgraded past 4 major releases of mongoose.

Now I add it back

char buffer[128]{};
const auto len = mg_http_get_var(&hm->query, "password", buffer, sizeof(buffer));

const auto reply = [&c](const char* s) -> void
Copy link
Contributor

Choose a reason for hiding this comment

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

Instead of rewritting it here as a local, could you please use ReplyError() function instead, and modify ReplyError to accept a custom optional message if you want to send a specific string?

@Rackover Rackover merged commit f6b19d6 into iw4x:develop Jan 20, 2024
2 checks passed
@diamante0018 diamante0018 deleted the password-mongoose branch January 20, 2024 14:38
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