A
A
Angope2022-01-16 18:16:47
Flask
Angope, 2022-01-16 18:16:47

Flask validation?

I use flask_wtf and wtforms.validators to submit the signup form and validate.
When registering, I check the mail, whether it is in the database or not. To do this, I wrote my own validator based on wtforms.validators. He just takes and sees if there is such mail in the database.

This method is generally practiced. what are its downsides. what about security?
What options do you use besides checking in the view function itself?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
F
FanatPHP, 2022-01-16
@Angope

Validation has nothing to do with security at all. It refers exclusively to business logic.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question