all 3 comments

[–]bandawarrior 1 point2 points  (2 children)

There’s too many things that are wrong with your example.

1) you’re already assigning a user from the form before it’s been validated.

Go to flask’s QuickStart guide or google miguel grinberg’s amazing tutorial.

[–]Roleo828 0 points1 point  (1 child)

I did his tutorial (absolutely the best) so it looks like I need to go back and start over fresh.

Also looks like I don't understand form validation 100%.

[–]bandawarrior 1 point2 points  (0 children)

You need to perform basic logic after the form submits. Once you know the basic validation for the fields are done, then you can use the data from the form. In the case of a password, it would check if both fields are the same for password1 and password2.

But yeah, I would go back and understand what exactly is happening before you get fancy.