Skip to content
Discussion options

You must be logged in to vote

A couple things going on. First - Flask-Security has stayed away from providing an admin UI interface - in general folks use Flask-Admin for that. Flask-Security does ship with a Flask CLI module - and you can create/delete users etc with that.

In terms of adding your own admin interface - that is pretty easy as well.

  1. Use security.datastore.xxx
  2. In general always use security.datastore.find_user and other helpers - as documented here: https://flask-security-too.readthedocs.io/en/stable/api.html#datastores. They properly update the database models.
  3. Since you are using SQLAlchemy - make sure that for any mutating operation you call datastore.commit() at the end of the request.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by FalkZerd
Comment options

You must be logged in to vote
0 replies
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