From 8d56b3b9645559429f589d450373075ffa201be7 Mon Sep 17 00:00:00 2001 From: neptune Date: Sun, 25 Apr 2021 18:02:57 -0400 Subject: Agregado setting para el tiempo de log en manage --- cgi/manage.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/cgi/manage.py b/cgi/manage.py index 9818247..0ad2d48 100644 --- a/cgi/manage.py +++ b/cgi/manage.py @@ -35,7 +35,7 @@ def manage(self, path_split): session_uuid = newSession(staff_account['id']) setCookie(self, 'weabot_manage', session_uuid) UpdateDb('DELETE FROM `logs` WHERE `timestamp` < ' + - str(timestamp() - 604800)) # one week + str(timestamp() - Settings.MANAGE_LOG_TIME)) # three months else: page += _('Incorrect username/password.') logAction('', 'Failed log-in. U:'+_mysql.escape_string(self.formdata['username'])+' IP logged.') -- cgit v1.2.1-18-gbd029