Closed mominur-helios closed 7 months ago
couple things: 1) I don't see in your code that you are validating the form 2) You are taking input directly from a user and creating a role? Seems pretty dangerous 3) if you want to add roles as part of registration - rather than override the view - set up a user_registered signal handler and do it there. That way you get all the validation benefits and code - the user will already be created - you can add roles there.
For general questions - please use 'discussions' or https://stackoverflow.com/questions/tagged/flask-security
I have override the registration view. Registration is working but the problem is if there is any error the error is not showing in the template. Error is showing when I use the default register view but after override it's not showing. This is my view