Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[SECURITY] Fix storage of sensitive informations #11

Closed
Virinas-code opened this issue Sep 10, 2021 · 1 comment
Closed

[SECURITY] Fix storage of sensitive informations #11

Virinas-code opened this issue Sep 10, 2021 · 1 comment

Comments

@Virinas-code
Copy link
Owner

Virinas-code commented Sep 10, 2021

[SECURITY] Fix storage of sensitive informations

#11

Problem

Currently, we are saving

  • Usernames
  • Acces tokens
    to main.log file.

Solution

Add a no_store option to log function.

@Virinas-code
Copy link
Owner Author

Fix

Old code

main_log.write(" ".join(str(arg) for arg in args) + "\n")

lok("Token is", token)

lok("Connected to", client.account.get().get("title", "USER"),
client.account.get().get("username", "Anonymous"))

New code

if kwargs.get("store", True):
main_log.write(" ".join(str(arg) for arg in args) + "\n")
else:
del kwargs["store"]

lok("Token is", token, store=False)

lok("Connected to", client.account.get().get("title", "USER"),
client.account.get().get("username", "Anonymous"), store=False)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant