diff options
author | neptune | 2021-04-25 18:02:57 -0400 |
---|---|---|
committer | neptune | 2021-04-25 18:02:57 -0400 |
commit | 8d56b3b9645559429f589d450373075ffa201be7 (patch) | |
tree | 062c52e4ee3a04bfd6141cf261cd42e47eb26d1d /cgi | |
parent | df3fc233bd172816ea76de4a2c5ffd1ded7eeb7c (diff) | |
download | weabot-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.py | 2 |
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.') |