Beispiel #1
0
 def getCredentials(self):
     gkr = Keyring("MailNotify", "login data")
     for p in self.config["plugins"]:
         log.info("receiving credentials ...")
         username, password = gkr.getCredential(p)
         self.config["plugins"][p]["username"] = username
         self.config["plugins"][p]["password"] = password
Beispiel #2
0
 def setCredentials(self):
     gkr = Keyring("MailNotify", "login data")
     for p in self.config["plugins"]:
         log.info("saving credentials ...")
         username = self.config["plugins"][p]["username"]
         password = self.config["plugins"][p]["password"]
         gkr.setCredential(username, password, p)
         del self.config["plugins"][p]["password"]
         del self.config["plugins"][p]["username"]