hyprlock/src/core/Password.hpp

18 lines
429 B
C++
Raw Normal View History

2024-02-19 00:08:03 +01:00
#pragma once
#include <memory>
#include <string>
#include <atomic>
2024-02-19 00:08:03 +01:00
class CPassword {
public:
struct SVerificationResult {
std::atomic<bool> realized = false;
bool success = false;
std::string failReason = "";
2024-02-19 00:08:03 +01:00
};
std::shared_ptr<SVerificationResult> verify(const std::string& pass);
2024-02-19 00:08:03 +01:00
};
inline std::unique_ptr<CPassword> g_pPassword = std::make_unique<CPassword>();