B #429 - form validation allows blank profile url
This commit is contained in:
@@ -31,4 +31,5 @@ class EditProfileForm(wtforms.Form):
|
||||
[wtforms.validators.Length(min=0, max=500)])
|
||||
url = wtforms.TextField(
|
||||
'Website',
|
||||
[wtforms.validators.URL(message='Improperly formed URL')])
|
||||
[wtforms.validators.Optional(),
|
||||
wtforms.validators.URL(message='Improperly formed URL')])
|
||||
|
||||
Reference in New Issue
Block a user