Tags: flask mysql flask-sqlalchemy flask-login flask-wtf

Comments

Kevin Foong on

You will typically save the role in a database when registering a user. In above tutorial you will need to expand on the /register endpoint and also create a roles table in your db.

Ronak Patel on

how to assign a role to the user

Leave a Comment

Email is optional