mirror of
https://github.com/hyprwm/hyprlock.git
synced 2025-12-20 08:50:03 +01:00
16 lines
336 B
C++
16 lines
336 B
C++
|
|
#pragma once
|
||
|
|
|
||
|
|
#include <memory>
|
||
|
|
#include <string>
|
||
|
|
|
||
|
|
class CPassword {
|
||
|
|
public:
|
||
|
|
struct SVerificationResult {
|
||
|
|
bool success = false;
|
||
|
|
std::string failReason = "";
|
||
|
|
};
|
||
|
|
|
||
|
|
SVerificationResult verify(const std::string& pass);
|
||
|
|
};
|
||
|
|
|
||
|
|
inline std::unique_ptr<CPassword> g_pPassword = std::make_unique<CPassword>();
|