Skip to content
Snippets Groups Projects
Unverified Commit e58ad16c authored by f00wl's avatar f00wl
Browse files

fix(form): fix #106

* use Optional validator
parent 5310a7db
No related branches found
No related tags found
No related merge requests found
......@@ -38,6 +38,6 @@ class PasswordForm(flask_wtf.FlaskForm):
class ContactForm(flask_wtf.FlaskForm):
email = fields.StringField(_("Email address"), [validators.Email()])
matrix = fields.StringField(_("Matrix ID"), [])
email = fields.StringField(_("Email address"), [validators.Email(), validators.Optional()])
matrix = fields.StringField(_("Matrix ID"), [validators.Optional()])
submit = fields.SubmitField(_("Update contact info"))
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment