Skip to content

Commit

Permalink
CB-4484. Rename error message for bruteforce protection (#2280)
Browse files Browse the repository at this point in the history
Co-authored-by: Daria Marutkina <[email protected]>
  • Loading branch information
DenisSinelnikov and dariamarutkina authored Jan 10, 2024
1 parent 008f7f9 commit 51bbc59
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public static void checkBruteforce(SMControllerConfiguration smConfig, List<User
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");
}
}
Expand Down

0 comments on commit 51bbc59

Please sign in to comment.