B #429 - form validation allows blank profile url
This commit is contained in:
parent
5ed4722de8
commit
20d82d6046
@ -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')])
|
||||
|
Loading…
x
Reference in New Issue
Block a user