summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMagnus Hagander2025-02-20 18:21:27 +0000
committerMagnus Hagander2025-02-20 18:21:27 +0000
commit215ca424500793f07c95702f4f8981a4c6cdd005 (patch)
tree5c83f58617f2c90d62c70c77c7a3170172e69dce
parent6c5b5a69e28fe45e8713f31fee6198e3df14f301 (diff)
Add CSRF token to add repo form
-rw-r--r--gitadmin/gitadmin/adm/templates/index.html2
1 files changed, 1 insertions, 1 deletions
diff --git a/gitadmin/gitadmin/adm/templates/index.html b/gitadmin/gitadmin/adm/templates/index.html
index 0fe98f2..8d84b86 100644
--- a/gitadmin/gitadmin/adm/templates/index.html
+++ b/gitadmin/gitadmin/adm/templates/index.html
@@ -33,7 +33,7 @@ the naming conversions as listed on the <a href="help/">help page</a>.</p>
<p>To request a new project, enter a name here. The name has to be 5-64 characters long and contain only lowercase
letters and numbers.</p>
-<form class="form-inline" method="post" action="new/">
+<form class="form-inline" method="post" action="new/">{% csrf_token %}
<input type="text" class="form-control mr-sm-2" name="reponame" maxlength="64" placeholder="Enter name of repository" required="true">
<input type="submit" class="btn btn-primary" value="Request new repository">
</form>