# Path: lib/Settings.py
# class Settings:
#     def __init__(self,
#                  override_settings_path='settings.cfg'):
#         self.settingsFilePath = override_settings_path
#         self.parser = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
#         self.settings = None
#         self.getSettings()
# 
#     def getSettings(self):
#         self.parser.read('./settings.cfg')
#         self.settings = {section: dict(**self.parser[section]) for section in self.parser.sections()}
# 
#         return self.settings
# 
#     def getServiceIp(self, service):
#         return self.settings['general']['my_ip']


from lib.Settings import Settings
from pymongo import MongoClient


class MongoForgotPassword:

    def __init__(self, injected_mongo_client=None):
        self.settings = Settings().getSettings()
        self.forgot_password = injected_mongo_client or MongoClient(

# Path: lib/Settings.py
# class Settings:
#     def __init__(self,
#                  override_settings_path='settings.cfg'):
#         self.settingsFilePath = override_settings_path
#         self.parser = configparser.ConfigParser(interpolation=configparser.ExtendedInterpolation())
#         self.settings = None
#         self.getSettings()
# 
#     def getSettings(self):
#         self.parser.read('./settings.cfg')
#         self.settings = {section: dict(**self.parser[section]) for section in self.parser.sections()}
# 
#         return self.settings
# 
#     def getServiceIp(self, service):
#         return self.settings['general']['my_ip']


# Path: lib/Users/MongoForgotPassword.py
from lib.Settings import Settings
from pymongo import MongoClient



class MongoForgotPassword:

    def __init__(self, injected_mongo_client=None):
        self.settings = Settings().getSettings()
        self.forgot_password = injected_mongo_client or MongoClient(

            Settings().getServiceIp('mongo')