Почти завершенная регистрация

This commit is contained in:
Антон
2025-08-30 07:40:53 +03:00
parent 07a9bbf9ff
commit eea5e42573
6 changed files with 84 additions and 23 deletions
+5
View File
@@ -33,6 +33,11 @@ void User::SetPassword(const string& 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_;
+2
View File
@@ -22,6 +22,8 @@ public:
void SetPassword(const std::string& password);
void SetHashedPassword(const std::string& hashed_password);
[[nodiscard]] const std::string& GetHashedPassword() const noexcept;
};
}