init not saving access_token correctly

I noticed that when you ctf init, we are saving the wrong param
ctfcli-challenge-finalize-command
ctxhamza 2020-04-08 12:45:24 +01:00 committed by GitHub
parent 5d5c94debd
commit 4ceaa003dd
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -33,7 +33,7 @@ class CTFCLI(object):
os.mkdir(".ctf")
config = configparser.ConfigParser()
config["config"] = {"url": ctf_url, "access_token": ctf_url}
config["config"] = {"url": ctf_url, "access_token": ctf_token}
config["challenges"] = {}
with open(".ctf/config", "a+") as f: