Fix cookie auth to work with oauth token auth. Make sure user loading is truly deferred to save DB connections.
This commit is contained in:
parent
e759066ae0
commit
5bb4008880
6 changed files with 65 additions and 26 deletions
2
app.py
2
app.py
|
@ -35,7 +35,7 @@ else:
|
|||
|
||||
app.config.from_object(config)
|
||||
|
||||
Principal(app, use_sessions=True)
|
||||
Principal(app, use_sessions=False)
|
||||
|
||||
login_manager = LoginManager()
|
||||
login_manager.init_app(app)
|
||||
|
|
Reference in a new issue