github-advanced-security[bot] commented on code in PR #1419:
URL: https://github.com/apache/syncope/pull/1419#discussion_r3381695037
##########
fit/core-reference/src/test/java/org/apache/syncope/fit/core/UserSelfITCase.java:
##########
@@ -392,6 +396,33 @@
assertNotEquals(pwdOnResource, newPwdOnResource);
}
+ @Test
+ public void passwordResetThrottle() {
+ String username = "missing-" + UUID.randomUUID() +
"@syncope.apache.org";
+ UserSelfService userSelfService =
ANONYMOUS_CLIENT.getService(UserSelfService.class);
+
+ int maxAttempts;
+ try (InputStream propStream =
AbstractITCase.class.getResourceAsStream("/core.properties")) {
+ Properties props = new Properties();
+ props.load(propStream);
+ maxAttempts =
Integer.parseInt(props.getProperty("security.passwordReset.throttle.maxAttempts",
"5"));
Review Comment:
## CodeQL / Missing catch of NumberFormatException
Potential uncaught 'java.lang.NumberFormatException'.
[Show more
details](https://github.com/apache/syncope/security/code-scanning/2642)
--
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]