stuff is broken

This commit is contained in:
Greg Gauthier 2019-03-12 15:32:12 +00:00
parent 4e7d0d778a
commit 3034f1108d
4 changed files with 4 additions and 4 deletions

View File

@ -1 +1 @@
{"pwdfilename": "pwdfile.json", "secret": null}
{"pwdfilename": "eg/pwdfile.json", "secret": "5MrW89mydi5SU9X0w7nSFlk-g5ERyKDlN4-N2z6ZR7M="}

View File

@ -6,7 +6,7 @@ class Config:
self.data = self.read()
def get_pwdfilename(self):
return self.data["pwdfile"]
return self.data["pwdfilename"]
def set_pwdfilename(self, pwdfilename):
self.data["pwdfilename"] = pwdfilename

View File

@ -28,7 +28,7 @@ class Credentials:
if username is None and password is not None:
self.creds[service] = {
"username": current_entry["username"],
"password": Password().encrypt(password)
"password": Password().encrypt(password).decode()
}
elif username is not None and password is None:
self.creds[service] = {

View File

@ -1 +1 @@
{"twitter": {"username": "@twitterhandle", "password": "gobbledygook"}, "youtube": {"username": "googlemail@gmail.com", "password": "moregobbledygook"}}
{"twitter": {"username": "@twitterhandle", "password": "gobbledygook"}, "youtube": {"username": "googlemail@gmail.com", "password": "moregobbledygook"}}