Skip to content
Discussion options

You must be logged in to vote

First - the way I think about flashing versus validation errors is that flashing is useful when the operation ends up redirecting the user to a different page/form - and the 'flash' gives information about why (e.g. successful login).
If there are errors that the user should fix - such as validation errors - those are better returned as part of the form so the user can fix and re-submit.

I am a bit confused - you say you added new templates - but sounds like you are still using the same default forms. All Flask-Security forms are based on Flask-WTF. You can override those forms - but then you are repeating a lot of work.

When you say 'did not leverage Flask-WTF for form rendering' I am no…

Replies: 1 comment 2 replies

Comment options

You must be logged in to vote
2 replies
@magma764
Comment options

@jwag956
Comment options

Answer selected by magma764
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants