Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Genesys PGR
Genesys Backend
Commits
c7d9ee7f
Commit
c7d9ee7f
authored
Jan 31, 2014
by
Matija Obreza
Browse files
reCAPTCHA on HTTPS needs to point to Google
parent
759a55d3
Changes
3
Hide whitespace changes
Inline
Side-by-side
src/main/webapp/WEB-INF/jsp/recaptcha/here.jsp
0 → 100644
View file @
c7d9ee7f
<%-- Bad, bad... Injecting scripts all over the HTTPS --%>
<script
type=
"text/javascript"
src=
"https://www.google.com/recaptcha/api/challenge?k=${captchaPublicKey}"
></script>
<noscript>
<iframe
src=
"http://www.google.com/recaptcha/api/noscript?k=${captchaPublicKey}"
height=
"300"
width=
"500"
frameborder=
"0"
></iframe><br>
<textarea
name=
"recaptcha_challenge_field"
rows=
"3"
cols=
"40"
></textarea>
<input
type=
"hidden"
name=
"recaptcha_response_field"
value=
"manual_challenge"
>
</noscript>
\ No newline at end of file
src/main/webapp/WEB-INF/jsp/registration.jsp
View file @
c7d9ee7f
...
...
@@ -57,16 +57,7 @@
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label"
><spring:message
code=
"captcha.text"
/></label>
<div
class=
"col-lg-3"
>
<script
type=
"text/javascript"
src=
"http://api.recaptcha.net/challenge?k=${captchaPublicKey}"
>
</script>
<noscript>
<iframe
src=
"http://api.recaptcha.net/noscript?k=${captchaPublicKey}"
height=
"300"
width=
"500"
frameborder=
"0"
></iframe>
<br>
<textarea
name=
"recaptcha_challenge_field"
rows=
"3"
cols=
"40"
>
</textarea>
<input
type=
"hidden"
name=
"recaptcha_response_field"
value=
"manual_challenge"
>
</noscript>
<%@include
file=
"/WEB-INF/jsp/recaptcha/here.jsp"
%>
</div>
</div>
<div
class=
"form-group"
>
...
...
src/main/webapp/WEB-INF/jsp/request/personal.jsp
View file @
c7d9ee7f
...
...
@@ -23,15 +23,7 @@
<div
class=
"form-group"
>
<label
class=
"col-lg-2 control-label"
><spring:message
code=
"captcha.text"
/></label>
<div
class=
"col-lg-3"
>
<script
type=
"text/javascript"
src=
"http://api.recaptcha.net/challenge?k=${captchaPublicKey}"
>
</script>
<noscript>
<iframe
src=
"http://api.recaptcha.net/noscript?k=${captchaPublicKey}"
height=
"300"
width=
"500"
frameborder=
"0"
></iframe>
<br>
<textarea
name=
"recaptcha_challenge_field"
rows=
"3"
cols=
"40"
></textarea>
<input
type=
"hidden"
name=
"recaptcha_response_field"
value=
"manual_challenge"
>
</noscript>
<%@include
file=
"/WEB-INF/jsp/recaptcha/here.jsp"
%>
</div>
</div>
<div
class=
"form-actions"
>
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment