display "@" before account name in failed attempt log

remotes/1693045480750635534/spooky-22
Aevann1 2022-10-28 22:26:44 +02:00
parent 853e665b5d
commit 166299ad3e
1 changed files with 1 additions and 1 deletions

View File

@ -158,7 +158,7 @@ def login_post():
def log_failed_admin_login_attempt(account:User, type:str):
if not account or account.admin_level < PERMS['SITE_WARN_ON_INVALID_AUTH']: return
ip = get_CF()
print(f"Admin user from {ip} failed to login to account {account.user_name} (invalid {type})!")
print(f"Admin user from {ip} failed to login to account @{account.user_name} (invalid {type})!")
try:
with open(f"/admin_failed_logins", "a+", encoding="utf-8") as f:
t = str(time.strftime("%d/%B/%Y %H:%M:%S UTC", time.gmtime(time.time())))