Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[#1070] Makes recaptcha work with the jinja2 templates
- Loading branch information
1 parent
8ba03bb
commit 2e0266f
Showing
4 changed files
with
23 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -670,3 +670,8 @@ textarea { | |
.box-shadow(none); | ||
} | ||
} | ||
|
||
#recaptcha_table { | ||
table-layout: inherit; | ||
line-height: 1; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
<div class="control-group"> | ||
<div class="controls"> | ||
|
||
<script type="text/javascript" src="http://www.google.com/recaptcha/api/challenge?k={{ public_key }}"></script> | ||
<noscript> | ||
<iframe src="http://www.google.com/recaptcha/api/noscript?k={{ public_key }}" 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> | ||
|
||
</div> | ||
</div> |
This is a real bug here ;-)
BTW: why do we need to get recaptcha_privatekey into app globals at all? Is it used anywhere in the templates? If not it would be better not to set it at all IMO and avoid risk of somehow exposing it ...