исправил тестовое состояние, исправил логику работы TDMA-морды, мелкие исправления в именовании параметров

This commit is contained in:
2025-01-20 10:39:18 +03:00
parent 6464cda437
commit 8813488df8
7 changed files with 41 additions and 56 deletions

View File

@@ -30,10 +30,10 @@ http::auth::jwt::Jwt http::auth::jwt::Jwt::fromCookies(const std::string &cookie
const auto auth = pc.at("auth");
std::string::size_type firstDot = std::string::npos;
std::string::size_type secondDot = std::string::npos;
for (size_t i = 0; i < auth.size(); i++) {
for (std::string::size_type i = 0; i < auth.size(); i++) {
if (auth[i] == '.') {
if (firstDot == std::string::npos) { firstDot = static_cast<int>(i); }
else if (secondDot == std::string::npos) { secondDot = static_cast<int>(i); }
if (firstDot == std::string::npos) { firstDot = i; }
else if (secondDot == std::string::npos) { secondDot = i; }
else {
// так быть не должно
return t;