исправил тестовое состояние, исправил логику работы TDMA-морды, мелкие исправления в именовании параметров
This commit is contained in:
@@ -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;
|
||||
|
Reference in New Issue
Block a user