mirror of
https://github.com/Expand-sys/CCash
synced 2025-12-17 00:22:14 +11:00
small admin add user changes
This commit is contained in:
parent
ffce6bf2f4
commit
92a48c5f0c
1 changed files with 2 additions and 2 deletions
|
|
@ -24,10 +24,10 @@ public:
|
||||||
}
|
}
|
||||||
bool AdminAddUser(const std::string &attempt, std::string &&name, uint_fast32_t init_bal, std::string &&init_pass)
|
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)
|
if (state)
|
||||||
{
|
{
|
||||||
users.try_emplace_l(
|
state = users.try_emplace_l(
|
||||||
name, [](User &) {}, init_bal, std::forward<std::string &&>(init_pass));
|
name, [](User &) {}, init_bal, std::forward<std::string &&>(init_pass));
|
||||||
}
|
}
|
||||||
return state;
|
return state;
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue