Skip to content

Commit

Permalink
Correction in checks for presence of Recaptcha field in login form
Browse files Browse the repository at this point in the history
  • Loading branch information
miteshashar committed Jul 14, 2023
1 parent ad06685 commit 04be899
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion funnel/templates/account_formlayout.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,7 @@
});
</script>
{{ ajaxform(ref_id=ref_id, request=request, force=ajax) }}
{%- if form and form.recaptcha is defined %}
{%- if form and 'recaptcha' in form %}
{% block recaptcha %}{{ recaptcha(ref_id=ref_id) }}{% endblock recaptcha %}
{%- endif %}
{% endblock footerscripts %}
2 changes: 1 addition & 1 deletion funnel/templates/ajaxform.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@
{%- if with_chrome -%}
{{ ajaxform(ref_id=ref_id, request=request, force=true) }}
{%- endif -%}
{%- if form and form.recaptcha is defined %}
{%- if form and 'recaptcha' in form %}
{% block recaptcha %}{% endblock recaptcha %}
{%- endif %}
{% endblock innerscripts %}
Expand Down
2 changes: 1 addition & 1 deletion funnel/templates/login.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
{% endblock afterloginbox %}

{% block recaptcha %}
{%- if form and form.recaptcha is defined %}
{%- if form and 'recaptcha' in form %}
{{ recaptcha(ref_id, formWrapperId='loginformwrapper', ajax=true) }}
{%- endif %}
{% endblock recaptcha %}

0 comments on commit 04be899

Please sign in to comment.