Skip to content

Commit

Permalink
Re-enable client side validation on login form
Browse files Browse the repository at this point in the history
  • Loading branch information
rebkwok committed Mar 20, 2024
1 parent 974bc47 commit 8b5cfd9
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions airlock/templates/login.html
Original file line number Diff line number Diff line change
Expand Up @@ -18,9 +18,8 @@ <h1 class="text-3xl break-words font-bold text-slate-900 mt-2 md:mt-0 md:col-spa
<form class="gap-2 flex-wrap md:flex-nowrap" method="POST" action="{% url 'login' %}" onsubmit="showSpinner()" >
{% csrf_token %}
<input type="hidden" name="next" value="{{ next_url }}" />

{% form_input type="text" field=token_login_form.user label="GitHub username or Email address" class="mb-3" placeholder="opensafely" input_class="max-w-md" %}
{% form_input type="text" field=token_login_form.token label="Single Use Token" placeholder="three random words" show_placeholder=True class="mb-3" input_class="max-w-md" %}
{% form_input type="text" field=token_login_form.user required=True label="GitHub username or Email address" class="mb-3" placeholder="opensafely" input_class="max-w-md" %}
{% form_input type="text" field=token_login_form.token required=True label="Single Use Token" placeholder="three random words" show_placeholder=True class="mb-3" input_class="max-w-md" %}

{% #button type="submit" variant="primary-outline" id="login-button" %}
Log in with token
Expand Down

0 comments on commit 8b5cfd9

Please sign in to comment.