Mercurial > prosody-modules
comparison mod_register_web/templates/recaptcha.html @ 1778:32604bf33a4c
mod_register_web: Switch to the new reCAPTCHA API, including support for "nocaptcha" when users are already signed in to Google.
author | Thijs Alkemade <me@thijsalkema.de> |
---|---|
date | Wed, 04 Mar 2015 12:57:24 +0100 |
parents | 6015434f0e05 |
children |
comparison
equal
deleted
inserted
replaced
1777:c353acd1d366 | 1778:32604bf33a4c |
---|---|
1 <tr> | 1 <tr> |
2 <td colspan="2"> | 2 <td colspan="2"> |
3 <script src="https://www.google.com/recaptcha/api/challenge?k={recaptcha_public_key}" type="text/javascript"></script> | 3 <script src="https://www.google.com/recaptcha/api.js" async defer></script> |
4 <div class="g-recaptcha" data-sitekey="{recaptcha_public_key}"></div> | |
4 <noscript> | 5 <noscript> |
5 <iframe frameborder="0" height="300" src="https://www.google.com/recaptcha/api/noscript?k={recaptcha_public_key}{recaptcha_display_error}" width="500"></iframe> | 6 <div style="width: 302px; height: 352px;"> |
6 <br> | 7 <div style="width: 302px; height: 352px; position: relative;"> |
7 <textarea cols="40" name="recaptcha_challenge_field" rows="3"></textarea> | 8 <div style="width: 302px; height: 352px; position: absolute;"> |
8 <input name="recaptcha_response_field" type="hidden" value="manual_challenge"> | 9 <iframe src="https://www.google.com/recaptcha/api/fallback?k={recaptcha_public_key}" |
10 frameborder="0" scrolling="no" | |
11 style="width: 302px; height:352px; border-style: none;"> | |
12 </iframe> | |
13 </div> | |
14 <div style="width: 250px; height: 80px; position: absolute; border-style: none; | |
15 bottom: 21px; left: 25px; margin: 0px; padding: 0px; right: 25px;"> | |
16 <textarea id="g-recaptcha-response" name="g-recaptcha-response" | |
17 class="g-recaptcha-response" | |
18 style="width: 250px; height: 80px; border: 1px solid #c1c1c1; | |
19 margin: 0px; padding: 0px; resize: none;" value=""> | |
20 </textarea> | |
21 </div> | |
22 </div> | |
23 </div> | |
9 </noscript> | 24 </noscript> |
10 </td> | 25 </td> |
11 </tr> | 26 </tr> |