| 98 | } |
| 99 | |
| 100 | void 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 | |
| 111 | bool AccessManager::isUserAuthorized(const QString& user, const QString& pw) |
| 112 | { |