mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
🐛 fixed massive send without b_name existing
This commit is contained in:
parent
48117b1834
commit
d3393e8084
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;
|
||||
}
|
||||
//as first modify_if checks a_name and grabs unique lock
|
||||
if (!Contains(b_name))
|
||||
if (Contains(b_name) != true)
|
||||
{
|
||||
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()))
|
||||
{
|
||||
|
||||
state = ErrorResponse::WrongPassword;
|
||||
}
|
||||
else
|
||||
|
|
|
|||
Loading…
Reference in a new issue