diff --git a/include/bank.hpp b/include/bank.hpp index a53cd10..2d54ffa 100644 --- a/include/bank.hpp +++ b/include/bank.hpp @@ -199,7 +199,7 @@ public: user_save.close(); for (const auto &u : temp.getMemberNames()) { - users.try_emplace(u, temp[u]["balance"].asUInt(), std::move(temp[u]["password"].asString())); + users.try_emplace(u, temp[u]["balance"].asUInt(), std::move(temp[u]["password"].asUInt64())); } } } diff --git a/include/user.hpp b/include/user.hpp index 1c1a02f..8a5f993 100644 --- a/include/user.hpp +++ b/include/user.hpp @@ -5,7 +5,7 @@ struct User { uint_fast32_t balance = 0; - uint_fast64_t password; + uint64_t password; /** * @brief User constructor @@ -26,7 +26,7 @@ struct User { Json::Value res; res["balance"] = (Json::UInt)balance; - res["password"] = (Json::LargestUInt)password; + res["password"] = (Json::UInt64)password; return res; } }; \ No newline at end of file