Commit d2753b940191b402eac1adfbac6ba83bbd9542ef

Authored by Tiago Guimarães
1 parent 07cfa20735
Exists in DSpace52++

align

dspace-api/src/main/java/pt/uminho/sdum/utils/VerifyRecaptcha.java
... ... @@ -16,7 +16,7 @@ import javax.net.ssl.HttpsURLConnection;
16 16 public class VerifyRecaptcha {
17 17  
18 18 public static final String url = "https://www.google.com/recaptcha/api/siteverify";
19   - public static final String secret = "6LfOliQTAAAAAO3gKRe5J-rNfG7DSHbdua71R57h";
  19 + private static final String secret = "6LfOliQTAAAAAO3gKRe5J-rNfG7DSHbdua71R57h";
20 20 private final static String USER_AGENT = "Mozilla/5.0";
21 21  
22 22 public static boolean verify(String gRecaptchaResponse) throws IOException {
... ...
dspace-jspui/src/main/webapp/requestItem/request-form.jsp
... ... @@ -105,7 +105,7 @@
105 105 <input type="hidden" name="handle" value='<%= handle %>' />
106 106 <input type="hidden" name="bitstream-id" value='<%= bitstream_id %>' />
107 107 <input type="hidden" name="step" value="<%=RequestItemServlet.ENTER_FORM_PAGE %>" />
108   - <div class="g-recaptcha" data-sitekey="6LfOliQTAAAAALClMSQsWexcm9Dr2dgsCytkAePl"></div>
  108 + <div align="right" class="g-recaptcha" data-sitekey="6LfOliQTAAAAALClMSQsWexcm9Dr2dgsCytkAePl"></div>
109 109 <div class="btn btn-group col-md-4 pull-right row">
110 110 <a class="btn btn-default col-md-6" href="<%=request.getContextPath()%>/handle/<%=handle %>"><fmt:message key="jsp.request.item.request-form.cancel" /></a>
111 111 <button type="submit" name="submit" class="btn btn-primary col-md-6" value="true"><fmt:message key="jsp.request.item.request-form.go"/></button>
... ...