- Sort Score
- Result 10 results
- Languages All
Results 1 - 2 of 2 for unlockAccount (0.32 sec)
-
src/main/java/jcifs/util/AuthenticationRateLimiter.java
} /** * Manually unlock an account * * @param username the username to unlock * @return true if account was unlocked, false if not found */ public boolean unlockAccount(String username) { AccountAttempts account = accountAttempts.get(username); if (account != null) { account.reset(); log.info("Manually unlocked account: {}", username);
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.1K bytes - Viewed (0) -
src/test/java/jcifs/util/AuthenticationRateLimiterTest.java
fail("Should be locked out"); } catch (SmbException e) { // Expected } // Manually unlock assertTrue(rateLimiter.unlockAccount(username), "Manual unlock should succeed"); // Should be allowed again assertTrue(rateLimiter.checkAttempt(username, ip), "Should be allowed after manual unlock"); } @Test
Registered: Sun Sep 07 00:10:21 UTC 2025 - Last Modified: Sat Aug 30 05:58:03 UTC 2025 - 15.8K bytes - Viewed (0)