aboutsummaryrefslogtreecommitdiff
path: root/cgi
diff options
context:
space:
mode:
authorLibravatar neptune 2021-04-25 18:02:57 -0400
committerLibravatar neptune 2021-04-25 18:02:57 -0400
commit8d56b3b9645559429f589d450373075ffa201be7 (patch)
tree062c52e4ee3a04bfd6141cf261cd42e47eb26d1d /cgi
parentdf3fc233bd172816ea76de4a2c5ffd1ded7eeb7c (diff)
downloadweabot-8d56b3b9645559429f589d450373075ffa201be7.tar.gz
weabot-8d56b3b9645559429f589d450373075ffa201be7.tar.xz
weabot-8d56b3b9645559429f589d450373075ffa201be7.zip
Agregado setting para el tiempo de log en manage
Diffstat (limited to 'cgi')
-rw-r--r--cgi/manage.py2
1 files changed, 1 insertions, 1 deletions
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.')