mirror of
https://github.com/hyprwm/hyprlock.git
synced 2024-11-17 07:15:57 +01:00
18 lines
No EOL
429 B
C++
18 lines
No EOL
429 B
C++
#pragma once
|
|
|
|
#include <memory>
|
|
#include <string>
|
|
#include <atomic>
|
|
|
|
class CPassword {
|
|
public:
|
|
struct SVerificationResult {
|
|
std::atomic<bool> realized = false;
|
|
bool success = false;
|
|
std::string failReason = "";
|
|
};
|
|
|
|
std::shared_ptr<SVerificationResult> verify(const std::string& pass);
|
|
};
|
|
|
|
inline std::unique_ptr<CPassword> g_pPassword = std::make_unique<CPassword>(); |