Commit e1345a9151af5f308b168747e0cdfba949b9dcef

Authored by Evandro Junior
1 parent 4ed1bedd

Fix captcha ID

Showing 2 changed files with 3 additions and 2 deletions   Show diff stats
index.html
... ... @@ -438,7 +438,8 @@
438 438 <div class="oauth-providers">
439 439 <input id="user_oauth_providers" name="oauth_providers" type="hidden">
440 440 </div>
441   - <div class="captcha col-sm-12" id="captcha_v1">
  441 + <div class="captcha col-sm-12">
  442 + <div id="g-recaptcha"></div>
442 443 </div>
443 444 <div class="actions col-sm-12">
444 445 <div class="row">
... ...
js/main.js
... ... @@ -1151,7 +1151,7 @@ define([&#39;jquery&#39;, &#39;handlebars&#39;, &#39;fastclick&#39;, &#39;handlebars_helpers&#39;, &#39;piwik&#39;], fun
1151 1151 loginForm.find('.message').hide();
1152 1152 signupForm.find('#g-recaptcha').empty();
1153 1153 //grecaptcha.render(signupForm.find('#g-recaptcha')[0], {'sitekey' : window.recaptchaSiteKey });
1154   - Recaptcha.create(window.recaptchaSiteKey, "captcha_v1", { theme: "red", callback: Recaptcha.focus_response_field } );
  1154 + Recaptcha.create(window.recaptchaSiteKey, "g-recaptcha", { theme: "red", callback: Recaptcha.focus_response_field } );
1155 1155 e.preventDefault();
1156 1156 })
1157 1157  
... ...