Compare commits

..

No commits in common. "36fd92f71c7b6313316a68ab2572f95eae067909" and "6122d9ee1333bbc2d16effda653d2cfd7d6b8ccc" have entirely different histories.

2 changed files with 5 additions and 7 deletions

View File

@ -1,3 +1,5 @@
import json
from pyotp import TOTP
from modules.Tools.logger import debug, warning
@ -10,8 +12,7 @@ class UserCredentials:
self.total = 0
def add(self, username: str, password: str, tfa: str = None):
debug(
f"adding account with data : Username: {username}, Password: {password}, 2FA: {'None' if tfa == '' else tfa}")
debug(f"adding account with data : Username: {username}, Password: {password}, 2FA: {'None' if tfa == '' else tfa}")
self.data[self.total] = {
"username": username,
"password": password,
@ -35,10 +36,7 @@ class UserCredentials:
def next_account(self):
self.current += 1
if self.is_valid():
debug(f"New credentials: {self.data[self.current]}")
else:
debug("No new credentials.")
debug(f"New credentials: {self.data[self.current]}")
def is_valid(self):
return self.current < self.total

View File

@ -1 +1 @@
v6.8.37
v6.8.36