airajena commented on code in PR #5367:
URL: https://github.com/apache/fineract/pull/5367#discussion_r2724042617
##########
fineract-provider/src/main/java/org/apache/fineract/infrastructure/configuration/domain/ConfigurationDomainServiceJpa.java:
##########
@@ -548,4 +548,15 @@ public String
getAssetOwnerTransferOustandingInterestStrategy() {
return getGlobalConfigurationPropertyData(
GlobalConfigurationConstants.ASSET_OWNER_TRANSFER_OUTSTANDING_INTEREST_CALCULATION_STRATEGY).getStringValue();
}
+
+ @Override
+ public Integer getPasswordReuseRestrictionCount() {
+ final GlobalConfigurationPropertyData property =
getGlobalConfigurationPropertyData(
+ GlobalConfigurationConstants.RESTRICT_REUSE_OF_PASSWORD);
+ if (!property.isEnabled()) {
+ return null;
+ }
+ Long value = property.getValue();
+ return value != null && value > 0 ? value.intValue() : null;
Review Comment:
Fixed! Now it returns 0 when enabled but no value is provided, instead of
null
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]