From b63f3bed8e9441f2e1032d558e53d53f3158f5b6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?P=C4=93teris=20Caune?= Date: Mon, 10 Aug 2020 11:23:59 +0300 Subject: [PATCH] Limit project name to 60 characters to prevent abuse --- hc/accounts/forms.py | 2 +- templates/accounts/project.html | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/hc/accounts/forms.py b/hc/accounts/forms.py index 3f426650..48b500b2 100644 --- a/hc/accounts/forms.py +++ b/hc/accounts/forms.py @@ -103,7 +103,7 @@ class RemoveTeamMemberForm(forms.Form): class ProjectNameForm(forms.Form): - name = forms.CharField(max_length=200, required=True) + name = forms.CharField(max_length=60, required=True) class TransferForm(forms.Form): diff --git a/templates/accounts/project.html b/templates/accounts/project.html index ed307765..c55214df 100644 --- a/templates/accounts/project.html +++ b/templates/accounts/project.html @@ -403,6 +403,7 @@ class="form-control" id="project-name" name="name" + maxlength="60" value="{{ project }}">