Browse Source

Limit project name to 60 characters to prevent abuse

pull/411/head
Pēteris Caune 4 years ago
parent
commit
b63f3bed8e
No known key found for this signature in database GPG Key ID: E28D7679E9A9EDE2
2 changed files with 2 additions and 1 deletions
  1. +1
    -1
      hc/accounts/forms.py
  2. +1
    -0
      templates/accounts/project.html

+ 1
- 1
hc/accounts/forms.py View File

@ -103,7 +103,7 @@ class RemoveTeamMemberForm(forms.Form):
class ProjectNameForm(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): class TransferForm(forms.Form):


+ 1
- 0
templates/accounts/project.html View File

@ -403,6 +403,7 @@
class="form-control" class="form-control"
id="project-name" id="project-name"
name="name" name="name"
maxlength="60"
value="{{ project }}"> value="{{ project }}">
</div> </div>
</div> </div>


Loading…
Cancel
Save