Open zach-gold opened 2 weeks ago
Validators are up and running, min and max length constraints as well as regex for email string validation have been added. need second set of eyes to confirm. submission is blocked across all forms if the validators throw any errors.
Brian has tested and confirmed passing functionality, validation messages just have to be styled and this can be closed
Noticing that I can sign up a new user with SINGLE character values in ALL of the form fields. Going to leave some general Form Validation Notes, below.
BEST PRACTICE: You should have Form input validations on the Frontend AND the backend. No need to send data to the back when it does not pass muster. Additionally, once an application has heavy traffic, sending the error responses unecessarily from the backend can actually become costly. And as user (probably hacker) does not need your UI to access your backend, we need to protect the database with good validations there as well. WTForms makes this easy.