mirror of
https://github.com/jpace121/j7s-jwt-mosquitto-auth.git
synced 2026-11-03 15:27:46 +00:00
Drop the expiration time stuff.
This commit is contained in:
1 parent
0b4a73e2b7
commit
3b4be67de3
6 files changed
+23
-37
No files matched your search
@@ -24,7 +24,7 @@ class AuthList
|
||||
public:
|
||||
AuthList();
|
||||
|
||||
void add(const std::string& username, const time_T& expr_time);
|
||||
void add(const std::string& username, const time_T& login_time);
|
||||
void remove(const std::string& username);
|
||||
bool confirm(const std::string& username);
|
||||
|
||||
|
||||
@@ -19,8 +19,7 @@
|
||||
|
||||
std::optional<std::string> read_key(const std::string &key_file);
|
||||
|
||||
std::tuple<bool, std::chrono::time_point<std::chrono::system_clock>> validate(
|
||||
const std::string &token, const std::string &username, const std::string &pub_key);
|
||||
bool validate(const std::string &token, const std::string &username, const std::string &pub_key);
|
||||
|
||||
std::string gen_token(
|
||||
const std::string &username,
|
||||
|
||||
Reference in new issue
Block a user