🐛 bad logic for name size

This commit is contained in:
EntireTwix 2021-07-12 16:23:30 -07:00
parent 16d26d1901
commit c2d8742138

View file

@ -4,7 +4,7 @@ using namespace drogon;
bool ValidUsername(const std::string &name) noexcept bool ValidUsername(const std::string &name) noexcept
{ {
if (name.size() >= min_name_size || name.size() <= max_name_size) if (name.size() < min_name_size || name.size() > max_name_size)
{ {
return false; return false;
} }