add check for key data before post

This commit is contained in:
Anonymous275 2022-09-05 02:53:16 +03:00
parent 8b650dc00a
commit bce68eee92

View File

@ -374,6 +374,13 @@ void CheckKey() {
Key.read(&Buffer[0], std::streamsize(Size));
Key.close();
for (char& c : Buffer) {
if (!std::isalnum(c) && c != '-') {
UpdateKey("");
return;
}
}
Buffer = HTTP::Post("https://auth.beammp.com/userlogin",
R"({"pk":")" + Buffer + "\"}");