small admin add user changes

This commit is contained in:
EntireTwix 2021-04-02 13:21:07 -07:00
parent ffce6bf2f4
commit 92a48c5f0c

View file

@ -24,10 +24,10 @@ public:
}
bool AdminAddUser(const std::string &attempt, std::string &&name, uint_fast32_t init_bal, std::string &&init_pass)
{
const bool state = (admin_pass == attempt);
bool state = (admin_pass == attempt);
if (state)
{
users.try_emplace_l(
state = users.try_emplace_l(
name, [](User &) {}, init_bal, std::forward<std::string &&>(init_pass));
}
return state;