Skip to content

Commit

Permalink
fix: Hide "Remember me" checkbox when needed (#126)
Browse files Browse the repository at this point in the history
  • Loading branch information
mvandenburgh authored Dec 9, 2024
1 parent f30ac20 commit cefb1ea
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions allauth_ui/templates/account/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,14 @@
</div>
{% url 'account_login' as action_url %}
{% #form form=form url=action_url button_text=heading %}
{% if form.remember %}
<div class="items-start my-2 form-control">
<label class="cursor-pointer label">
{% render_field form.remember class="checkbox checkbox-accent" %}
<span class="ml-2 label-text">{% trans "Remember me" %}</span>
</label>
</div>
{% endif %}
{{ redirect_field }}
{% csrf_token %}
<div class="flex flex-col">
Expand Down

0 comments on commit cefb1ea

Please sign in to comment.