mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 massive bug
This commit is contained in:
parent
48117b1834
commit
f62465419e
1 changed files with 1 additions and 2 deletions
|
|
@ -74,7 +74,7 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
|
||||||
return ErrorResponse::InvalidRequest;
|
return ErrorResponse::InvalidRequest;
|
||||||
}
|
}
|
||||||
//as first modify_if checks a_name and grabs unique lock
|
//as first modify_if checks a_name and grabs unique lock
|
||||||
if (!Contains(b_name))
|
if (Contains(b_name) != true)
|
||||||
{
|
{
|
||||||
return ErrorResponse::UserNotFound;
|
return ErrorResponse::UserNotFound;
|
||||||
}
|
}
|
||||||
|
|
@ -92,7 +92,6 @@ int_fast8_t Bank::SendFunds(const std::string &a_name, const std::string &b_name
|
||||||
}
|
}
|
||||||
else if (a.password != XXH3_64bits(attempt.data(), attempt.size()))
|
else if (a.password != XXH3_64bits(attempt.data(), attempt.size()))
|
||||||
{
|
{
|
||||||
|
|
||||||
state = ErrorResponse::WrongPassword;
|
state = ErrorResponse::WrongPassword;
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue