This is an automated email from the ASF dual-hosted git repository.
ilgrosso pushed a commit to branch 4_0_X
in repository https://gitbox.apache.org/repos/asf/syncope.git
The following commit(s) were added to refs/heads/4_0_X by this push:
new e9e8cb6cbb [SYNCOPE-1888] Change required property for specific inputs
in policy configuration (#1091)
e9e8cb6cbb is described below
commit e9e8cb6cbb0cf1606cca417e351bc612ec83fcbe
Author: alberto bogi <[email protected]>
AuthorDate: Wed May 28 12:40:57 2025 +0200
[SYNCOPE-1888] Change required property for specific inputs in policy
configuration (#1091)
---
.../client/console/policies/PolicyModalPanelBuilder.java | 10 +++++-----
1 file changed, 5 insertions(+), 5 deletions(-)
diff --git
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/PolicyModalPanelBuilder.java
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/PolicyModalPanelBuilder.java
index cb9f88b0ee..708cdc2e0e 100644
---
a/client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/PolicyModalPanelBuilder.java
+++
b/client/idrepo/console/src/main/java/org/apache/syncope/client/console/policies/PolicyModalPanelBuilder.java
@@ -147,11 +147,11 @@ public class PolicyModalPanelBuilder<T extends PolicyTO>
extends AbstractModalPa
switch (type) {
case ACCOUNT:
- fields.add(new
AjaxNumberFieldPanel.Builder<Integer>().min(1).build(
+ fields.add(new
AjaxNumberFieldPanel.Builder<Integer>().min(0).build(
"field",
"maxAuthenticationAttempts",
Integer.class,
- new PropertyModel<>(policyTO,
"maxAuthenticationAttempts")));
+ new PropertyModel<>(policyTO,
"maxAuthenticationAttempts")).setRequired(true));
fields.add(new AjaxCheckBoxPanel(
"field",
@@ -161,11 +161,11 @@ public class PolicyModalPanelBuilder<T extends PolicyTO>
extends AbstractModalPa
break;
case PASSWORD:
- fields.add(new
AjaxNumberFieldPanel.Builder<Integer>().min(1).build(
+ fields.add(new
AjaxNumberFieldPanel.Builder<Integer>().min(0).build(
"field",
"historyLength",
Integer.class,
- new PropertyModel<>(policyTO, "historyLength")));
+ new PropertyModel<>(policyTO,
"historyLength")).setRequired(true));
fields.add(new AjaxCheckBoxPanel(
"field",
@@ -191,7 +191,7 @@ public class PolicyModalPanelBuilder<T extends PolicyTO>
extends AbstractModalPa
"field",
"maxAttempts",
Integer.class,
- new PropertyModel<>(policyTO, "maxAttempts")));
+ new PropertyModel<>(policyTO,
"maxAttempts")).setRequired(true));
AjaxDropDownChoicePanel<Serializable> backOffStrategy =
new AjaxDropDownChoicePanel<>(
"field",
"backOffStrategy",