mirror of
https://github.com/dbeaver/cloudbeaver.git
synced 2026-09-24 16:04:36 +08:00
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:
co-authored by
Daria Marutkina
parent
008f7f9659
commit
51bbc59fe4
+1
-1
@@ -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");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user