diff --git a/index.html b/index.html index c4830cb..ab9409f 100644 --- a/index.html +++ b/index.html @@ -439,7 +439,23 @@
-
+
+ + +
+
+
+ Imagem Captcha +
+
+ + +
+
+ + +
+
@@ -554,7 +570,7 @@ loadRequireJS(); - + diff --git a/js/main.js b/js/main.js index bf1e724..bff85b8 100644 --- a/js/main.js +++ b/js/main.js @@ -1152,8 +1152,6 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun signupForm.find(".password").show(); signupForm.find(".password-confirmation").show(); loginForm.find('.message').hide(); - signupForm.find('#g-recaptcha').empty(); - Recaptcha.create(window.recaptchaSiteKey, signupForm.find('#g-recaptcha')[0], { lang : 'pt', theme: "clean", callback: Recaptcha.focus_response_field } ); e.preventDefault(); }) @@ -1190,8 +1188,7 @@ define(['jquery', 'handlebars', 'fastclick', 'handlebars_helpers', 'piwik'], fun $(document).trigger('login:success', data); }).fail(function(data) { var msg = ""; - window.signupForm.find('#g-recaptcha').empty(); - Recaptcha.create(window.recaptchaSiteKey, window.signupForm.find('#g-recaptcha')[0], { lang : 'pt', theme: "clean", callback: Recaptcha.focus_response_field } ); + //RELOAD CAPTCHA HERE try{ msg = Main.responseToText(data.responseJSON.message); -- libgit2 0.21.2