Erase login IP addresses after seven days
commitce93360257f3b4ef60035a75708148fc814811c1
authorLukas Fleischer <lfleischer@archlinux.org>
Thu, 10 May 2018 19:38:25 +0000 (10 21:38 +0200)
committerLukas Fleischer <lfleischer@archlinux.org>
Thu, 10 May 2018 19:38:25 +0000 (10 21:38 +0200)
tree2d1cac47e524ba6e6164bb92e40bbbf78e2a265b
parent4381a0d7c23203d19d8c33afc6264fa584ba0a4f
Erase login IP addresses after seven days

Add a script to periodically remove old IP addresses from the users
database.

The login IP addresses are stored for spam protection and to prevent
from abuse. It is quite unlikely that we ever need the IP address of a
user whose last login is more than a week old. It makes sense to remove
such IP addresses to protect our users' privacy.

Signed-off-by: Lukas Fleischer <lfleischer@archlinux.org>
aurweb/scripts/usermaint.py [new file with mode: 0755]
setup.py
test/setup.sh
test/t2700-usermaint.sh [new file with mode: 0755]