Skip to content
This repository was archived by the owner on May 4, 2026. It is now read-only.

Commit 485d51c

Browse files
committed
session fix for mongodb for sessions
1 parent ce372b7 commit 485d51c

1 file changed

Lines changed: 4 additions & 0 deletions

File tree

purpleops.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,10 @@
2828

2929
me.connect(**app.config["MONGODB_SETTINGS"])
3030

31+
# Get the MongoClient instance and assign it to SESSION_MONGODB which is used by Security
32+
mongo_client = me.get_connection()
33+
app.config['SESSION_MONGODB'] = mongo_client
34+
3135
security = Security(app, user_datastore)
3236
csrf = CSRFProtect(app)
3337
session_interface = Session(app)

0 commit comments

Comments
 (0)