mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-19 01:22:14 +11:00
🐛 fixed DelUser & AdminDelUser
This commit is contained in:
parent
a34f3dc640
commit
986829d798
1 changed files with 2 additions and 2 deletions
|
|
@ -39,7 +39,7 @@ int_fast8_t Bank::DelUser(const std::string &name, const std::string &attempt)
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return state * ErrorResponse::WrongPassword;
|
return (!state * ErrorResponse::WrongAdminPassword) + (state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
//not branchless yet
|
//not branchless yet
|
||||||
|
|
@ -53,7 +53,7 @@ int_fast8_t Bank::AdminDelUser(const std::string &name, const std::string &attem
|
||||||
}
|
}
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
return state * ErrorResponse::WrongAdminPassword;
|
return (!state * ErrorResponse::WrongAdminPassword) + (state);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue