lingthio / Flask-User

Customizable User Authorization & User Management: Register, Confirm, Login, Change username/password, Forgot password and more.
http://flask-user.readthedocs.io/
MIT License
1.06k stars 294 forks source link

refactor(package): enabling postopend init_app for all managers #338

Open avillia opened 2 years ago

avillia commented 2 years ago

While working on some projects, I've found out that Flask-User doesn't properly hold initialization without passed app, db and UserClass objects. And even if you want to firstly create UserManager and then init_app, you have to do smth like UserManager(app=None, ...), which looks inconsistent and odd.