Skip to content

Commit

Permalink
new version 0.2.1-RELEASE
Browse files Browse the repository at this point in the history
spring boot and recaptcha versions updated
  • Loading branch information
de-luxe committed Jun 24, 2016
1 parent 6731be6 commit 70cd959
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 12 deletions.
6 changes: 3 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -6,20 +6,20 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>1.3.3.RELEASE</version>
<version>1.3.5.RELEASE</version>
</parent>

<name>burstcoin-faucet</name>
<groupId>burstcoin</groupId>
<artifactId>burstcoin-faucet</artifactId>
<version>0.2.0-RELEASE</version>
<version>0.2.1-RELEASE</version>

<properties>
<java.version>1.8</java.version>
<main.basedir>${basedir}/../..</main.basedir>

<bcprov-jdk16.version>1.46</bcprov-jdk16.version>
<recaptcha-spring-boot-starter.version>1.3.4</recaptcha-spring-boot-starter.version>
<recaptcha-spring-boot-starter.version>1.3.5</recaptcha-spring-boot-starter.version>
</properties>

<dependencies>
Expand Down
22 changes: 13 additions & 9 deletions src/main/java/burstcoin/faucet/controller/FaucetController.java
Original file line number Diff line number Diff line change
Expand Up @@ -161,18 +161,22 @@ public String claim(@RequestParam("accountId") String accountId, HttpServletRequ
{
// get cookie lastClaim
Long lastClaimCookie = null;
List<Cookie> cookies = Arrays.asList(request.getCookies());
for(Cookie cookie : cookies)
Cookie[] cookieArray = request.getCookies();
if(cookieArray != null)
{
if(SECURE_COOKIE_NAME.equals(cookie.getName()))
List<Cookie> cookies = Arrays.asList(cookieArray);
for(Cookie cookie : cookies)
{
try
if(SECURE_COOKIE_NAME.equals(cookie.getName()))
{
lastClaimCookie = Long.valueOf(cookie.getValue());
}
catch(Exception e)
{
lastClaimCookie = null;
try
{
lastClaimCookie = Long.valueOf(cookie.getValue());
}
catch(Exception e)
{
lastClaimCookie = null;
}
}
}
}
Expand Down

0 comments on commit 70cd959

Please # to comment.