MCPcopy Create free account
hub / github.com/awawa-dev/HyperHDR / setAuthBlock

Method setAuthBlock

sources/base/AccessManager.cpp:100–109  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

98}
99
100void AccessManager::setAuthBlock(bool user)
101{
102 // current timestamp +10 minutes
103 if (user)
104 _userAuthAttempts.append(InternalClock::now() + 600000);
105 else
106 _tokenAuthAttempts.append(InternalClock::now() + 600000);
107
108 _authBlockTimer->start();
109}
110
111bool AccessManager::isUserAuthorized(const QString& user, const QString& pw)
112{

Callers

nothing calls this directly

Calls 1

startMethod · 0.45

Tested by

no test coverage detected