summaryrefslogtreecommitdiffstats
path: root/src/squark-filter.c
diff options
context:
space:
mode:
authorTimo Teräs <timo.teras@iki.fi>2010-11-07 01:57:30 +0200
committerTimo Teräs <timo.teras@iki.fi>2010-11-07 01:57:30 +0200
commit1c23dbef0405d8ca9776737a209fb5b549219bc8 (patch)
tree378ac096a56dca5a6a6ac52ed138d85f888f4dd3 /src/squark-filter.c
parentcb2db2f1c759c60849b66dabf8ee03c9cdfb2dd5 (diff)
downloadsquark-1c23dbef0405d8ca9776737a209fb5b549219bc8.tar.bz2
squark-1c23dbef0405d8ca9776737a209fb5b549219bc8.tar.xz
authdb, auth-ip: make logout_timeout configurable
* authdb: change to use squark.conf instead of filter.conf * authdb: config option logout_timeout added (defaults to 15mins) * auth-ip: add -r parameter to refresh login time fixes #452
Diffstat (limited to 'src/squark-filter.c')
-rw-r--r--src/squark-filter.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/squark-filter.c b/src/squark-filter.c
index 567201a..eff88b1 100644
--- a/src/squark-filter.c
+++ b/src/squark-filter.c
@@ -395,7 +395,7 @@ static void read_input(struct sqdb *db)
category = 0;
token = authdb_get(&adb, &addr, &entry, 1);
- if (authdb_check_login(token, &entry, username, now)) {
+ if (authdb_check_login(token, &entry, username, now, &adbc)) {
auth_ok = 1;
username = BLOB_STRLEN(entry.p.login_name);
} else {