mirror of
https://github.com/Expand-sys/CCash
synced 2026-03-22 20:47:10 +11:00
🐛 bad logic for name size
This commit is contained in:
parent
16d26d1901
commit
c2d8742138
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue