CB-4484. Rename error message for bruteforce protection (#2280)

Co-authored-by: Daria Marutkina <125263541+dariamarutkina@users.noreply.github.com>
This commit is contained in:
DenisSinelnikov
2024-01-10 15:32:18 +03:00
committed by GitHub
co-authored by Daria Marutkina
parent 008f7f9659
commit 51bbc59fe4
@@ -53,7 +53,7 @@ public class BruteForceUtils {
log.error("User login is blocked due to exceeding the limit of incorrect password entry");
Duration lockDuration = Duration.ofSeconds(smConfig.getBlockLoginPeriod());
throw new SMException("User blocked for " +
throw new SMException("Blocked the possibility of login for this user for " +
lockDuration.minus(Duration.between(latestLogin.time(), now)).getSeconds() + " seconds");
}
}