moved the initialisation to Config.py
This commit is contained in:
parent
da707ade5a
commit
f1cce097ad
@ -1,7 +1,15 @@
|
|||||||
|
import json
|
||||||
|
|
||||||
from modules.Classes.UserCredentials import UserCredentials
|
from modules.Classes.UserCredentials import UserCredentials
|
||||||
|
|
||||||
|
|
||||||
class Config:
|
class Config:
|
||||||
def __init__(self, args):
|
def __init__(self, args):
|
||||||
self.args = args
|
self.args = args
|
||||||
self.UserCredentials = UserCredentials(args.config)
|
self.UserCredentials = UserCredentials()
|
||||||
|
|
||||||
|
with open("/app/MsRewards-Reborn/user_data/configs.json", "r") as inFile:
|
||||||
|
configs = json.load(inFile)
|
||||||
|
for i in configs[str(args.config)]["accounts"]:
|
||||||
|
d = configs[str(args.config)]["accounts"][i]
|
||||||
|
self.UserCredentials.add(d["mail"], d["pwd"], d["2fa"])
|
||||||
|
Loading…
Reference in New Issue
Block a user