[AB-xxx] adding check to limit the join duration of users being banned by honeypot

This commit is contained in:
Sheldan
2024-02-09 23:17:12 +01:00
parent 1689fcdae9
commit 11914d1be5
3 changed files with 19 additions and 6 deletions

View File

@@ -12,6 +12,7 @@ public class HoneyPotFeatureConfig implements FeatureConfig {
public static final String HONEYPOT_ROLE_ID = "honeypotRoleId";
public static final String HONEYPOT_IGNORED_LEVEL = "honeypotIgnoredLevel";
public static final String HONEYPOT_IGNORED_JOIN_DURATION_SECONDS = "honeypotIgnoredJoinDurationSeconds";
@Override
public FeatureDefinition getFeature() {
@@ -20,6 +21,6 @@ public class HoneyPotFeatureConfig implements FeatureConfig {
@Override
public List<String> getRequiredSystemConfigKeys() {
return Arrays.asList(HONEYPOT_ROLE_ID, HONEYPOT_IGNORED_LEVEL);
return Arrays.asList(HONEYPOT_ROLE_ID, HONEYPOT_IGNORED_LEVEL, HONEYPOT_IGNORED_JOIN_DURATION_SECONDS);
}
}