0
0
Fork 0
mirror of https://github.com/healthchecks/healthchecks.git synced 2025-04-11 15:51:19 +00:00

Limit project name to 60 characters to prevent abuse

This commit is contained in:
Pēteris Caune 2020-08-10 11:23:59 +03:00
parent f131123e0e
commit b63f3bed8e
No known key found for this signature in database
GPG key ID: E28D7679E9A9EDE2
2 changed files with 2 additions and 1 deletions
hc/accounts
templates/accounts

View file

@ -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):

View file

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