From 92a48c5f0cd950b8e2fa5a18452653b381ad17c4 Mon Sep 17 00:00:00 2001 From: EntireTwix Date: Fri, 2 Apr 2021 13:21:07 -0700 Subject: [PATCH] small admin add user changes --- include/bank.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/include/bank.hpp b/include/bank.hpp index c10233d..7225707 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -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(init_pass)); } return state;