add brute force enabled so we can render switch (#34282)

fixes: #34065

Signed-off-by: Erik Jan de Wit <erikjan.dewit@gmail.com>
This commit is contained in:
Erik Jan de Wit 2024-10-25 15:25:03 +02:00 committed by GitHub
parent 2f64f43266
commit 4d25128018
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -385,6 +385,7 @@ public class RealmAdminResource {
rep.setDisplayName(realm.getDisplayName());
rep.setDisplayNameHtml(realm.getDisplayNameHtml());
rep.setSupportedLocales(realm.getSupportedLocalesStream().collect(Collectors.toSet()));
rep.setBruteForceProtected(realm.isBruteForceProtected());
if (auth.users().canView()) {
rep.setRegistrationEmailAsUsername(realm.isRegistrationEmailAsUsername());