generated from Sithas/conan_template
Почти завершенная регистрация
This commit is contained in:
@@ -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_;
|
||||
|
||||
@@ -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;
|
||||
};
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user