From 58912b124a72234fcea049654bf3a097416b97ab Mon Sep 17 00:00:00 2001 From: Aevann1 Date: Fri, 28 Oct 2022 22:25:35 +0200 Subject: [PATCH] display "@" before account name in failed login attempt --- files/routes/login.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/files/routes/login.py b/files/routes/login.py index e8a6cfa2f..a4aa49ebf 100644 --- a/files/routes/login.py +++ b/files/routes/login.py @@ -157,7 +157,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())))