Skip to content

Commit

Permalink
Merge conflict resolved.
Browse files Browse the repository at this point in the history
  • Loading branch information
ivanmrsulja committed Dec 11, 2023
2 parents 44705db + 4a30ce2 commit 62fffeb
Show file tree
Hide file tree
Showing 3 changed files with 16 additions and 3 deletions.
15 changes: 15 additions & 0 deletions api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,21 @@
<artifactId>guava</artifactId>
<version>30.1-jre</version>
</dependency>
<dependency>
<groupId>net.logicsquad</groupId>
<artifactId>nanocaptcha</artifactId>
<version>1.5</version>
</dependency>
<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.36</version>
</dependency>
<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
<version>30.1-jre</version>
</dependency>
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>fluent-hc</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,6 @@ public static boolean validateReCaptcha(String recaptchaResponse, String secretK
try (CloseableHttpClient httpClient = HttpClients.createDefault()) {
HttpGet verificationRequest = new HttpGet(verificationUrl);
HttpResponse verificationResponse = httpClient.execute(verificationRequest);

String responseBody = EntityUtils.toString(verificationResponse.getEntity());
ObjectMapper objectMapper = new ObjectMapper();
ReCaptchaResponse response = objectMapper.readValue(responseBody, ReCaptchaResponse.class);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,7 @@ else if (StringUtils.isBlank(appBean.getContactMail())) {
}

else {
String captchaImpl =
ConfigurationProperties.getInstance().getProperty("captcha.implementation");
String captchaImpl = ConfigurationProperties.getInstance().getProperty("captcha.implementation");
if (captchaImpl == null) {
captchaImpl = "";
}
Expand Down

0 comments on commit 62fffeb

Please sign in to comment.