Skip to content

Commit

Permalink
Enable ajax post for login form when recaptcha is not present (#1809)
Browse files Browse the repository at this point in the history
  • Loading branch information
vidya-ram committed Jul 18, 2023
1 parent 2cc00db commit 9a18fa4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion funnel/templates/password_login_form.html.jinja2
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@
method="post"
class="mui-form mui-form--margins"
accept-charset="UTF-8"
action="{{ action }}">
action="{{ action }}"
{%- if not 'recaptcha' in loginform %} hx-post="{{ action }}" hx-target="#loginformwrapper" {%- endif %}
>
<input type="hidden" name="form.id" value="{{ formid }}"/>
{{ loginform.hidden_tag() }}
{% if loginform.csrf_token is defined %}
Expand Down

0 comments on commit 9a18fa4

Please sign in to comment.