#include #include #include "User.h" using namespace std; namespace uad { const string& User::GetUUID() const noexcept { return uuid_; } void User::SetUUID(const string& new_uuid) { uuid_ = new_uuid; } const string& User::GetLogin() const noexcept { return login_; } void User::SetLogin(const string& login) { login_ = login; } void User::SetPassword(const string& password) { size_t calculated_hash = hash{}(password); hashed_password_ = ToHex((byte*)&calculated_hash, sizeof(calculated_hash)); } void User::SetHashedPassword(const std::string& hashed_password) { hashed_password_ = hashed_password; } const string& User::GetHashedPassword() const noexcept { return hashed_password_; } }