diff options
-rw-r--r-- | app/utils/mongo_access.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/app/utils/mongo_access.py b/app/utils/mongo_access.py index 6277ace..d39794f 100644 --- a/app/utils/mongo_access.py +++ b/app/utils/mongo_access.py @@ -90,6 +90,8 @@ class MongoAccess(DictNamingConverter): ) MongoAccess.db = getattr(MongoAccess.client, config_params.get('auth_db', self.DB_NAME)) + MongoAccess.db.authenticate(name=self.connect_params['user'], + password=self.connect_params['pwd']) self.log.info('Connected to MongoDB') def prepare_connect_uri(self): |