From 8b5cfd9c0151f19713163a052a1844fe9ff2e500 Mon Sep 17 00:00:00 2001 From: Becky Smith Date: Wed, 20 Mar 2024 13:06:26 +0000 Subject: [PATCH] Re-enable client side validation on login form --- airlock/templates/login.html | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/airlock/templates/login.html b/airlock/templates/login.html index 09baf284..81835a30 100644 --- a/airlock/templates/login.html +++ b/airlock/templates/login.html @@ -18,9 +18,8 @@

{% csrf_token %} - - {% 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