Lines Matching refs:mLockOut
209 switch (mLockOut.state) { in authenticate()
216 if (mLockOut.nextAttempt > now) { in authenticate()
217 mLockOut.state = LockOut::State::TIMED_LOCKED; in authenticate()
220 std::chrono::milliseconds>(mLockOut.nextAttempt - now).count(); in authenticate()
230 mLockOut.state = LockOut::State::NO; in authenticate()
237 (mLockOut.state == LockOut::State::NO) in authenticate()
238 ? 1 : ++mLockOut.failedAttempts; in authenticate()
241 mLockOut.state = LockOut::State::PERMANENT; in authenticate()
245 mLockOut.state = LockOut::State::TIMED; in authenticate()
247 mLockOut.nextAttempt = now + std::chrono::seconds(10); in authenticate()
248 mLockOut.expiration = now + std::chrono::minutes(10); in authenticate()
250 mLockOut.nextAttempt = now + std::chrono::seconds(3); in authenticate()
251 mLockOut.expiration = now + std::chrono::minutes(1); in authenticate()
253 mLockOut.nextAttempt = now + std::chrono::milliseconds(500); in authenticate()
254 mLockOut.expiration = now + std::chrono::seconds(10); in authenticate()
262 mLockOut.state = LockOut::State::NO; in resetLockout()
266 if (mLockOut.state != LockOut::State::TIMED_LOCKED) { in checkIfLockoutCleared()
271 if (now > mLockOut.expiration) { in checkIfLockoutCleared()
272 mLockOut.state = LockOut::State::NO; in checkIfLockoutCleared()
274 } else if (now > mLockOut.nextAttempt) { in checkIfLockoutCleared()
275 mLockOut.state = LockOut::State::TIMED; in checkIfLockoutCleared()