remove unnecessary

pull/225/head
Aevann 2024-03-29 21:08:20 +02:00
parent 20307c3555
commit c7d03e86e9
1 changed files with 1 additions and 1 deletions

View File

@ -107,7 +107,7 @@ def login_post(v):
def log_failed_admin_login_attempt(account, type):
if not account or account.admin_level < PERMS['WARN_ON_FAILED_LOGIN']: return
ip = get_IP()
print(f"A site admin from {ip} failed to login to account @{account.user_name} (invalid {type})")
print(f"A site admin from {ip} failed to login to account @{account.username} (invalid {type})")
t = time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time()))
log_file(f"{t}, {ip}, {account.username}, {type}", "admin_failed_logins.log")