feat: write account details to json file as part of create_access_token
This commit is contained in:
parent
3801772cd1
commit
b2d1e1cfd0
1 changed files with 2 additions and 0 deletions
|
@ -294,6 +294,8 @@ class Forgejo:
|
|||
print("Created access token")
|
||||
data = resp.json()
|
||||
with open(file, "w") as f:
|
||||
data["login"] = self.username
|
||||
data["email"] = self.email
|
||||
content = json.dumps(data)
|
||||
f.write(content)
|
||||
print(f"Wrote access token to {file}")
|
||||
|
|
Loading…
Reference in a new issue