stuff is broken
This commit is contained in:
parent
4e7d0d778a
commit
3034f1108d
@ -1 +1 @@
|
|||||||
{"pwdfilename": "pwdfile.json", "secret": null}
|
{"pwdfilename": "eg/pwdfile.json", "secret": "5MrW89mydi5SU9X0w7nSFlk-g5ERyKDlN4-N2z6ZR7M="}
|
@ -6,7 +6,7 @@ class Config:
|
|||||||
self.data = self.read()
|
self.data = self.read()
|
||||||
|
|
||||||
def get_pwdfilename(self):
|
def get_pwdfilename(self):
|
||||||
return self.data["pwdfile"]
|
return self.data["pwdfilename"]
|
||||||
|
|
||||||
def set_pwdfilename(self, pwdfilename):
|
def set_pwdfilename(self, pwdfilename):
|
||||||
self.data["pwdfilename"] = pwdfilename
|
self.data["pwdfilename"] = pwdfilename
|
||||||
|
@ -28,7 +28,7 @@ class Credentials:
|
|||||||
if username is None and password is not None:
|
if username is None and password is not None:
|
||||||
self.creds[service] = {
|
self.creds[service] = {
|
||||||
"username": current_entry["username"],
|
"username": current_entry["username"],
|
||||||
"password": Password().encrypt(password)
|
"password": Password().encrypt(password).decode()
|
||||||
}
|
}
|
||||||
elif username is not None and password is None:
|
elif username is not None and password is None:
|
||||||
self.creds[service] = {
|
self.creds[service] = {
|
||||||
|
Loading…
Reference in New Issue
Block a user