X-Git-Url: http://git.bytex64.net/?a=blobdiff_plain;f=common%2Fauth.c;h=240ac470b6b7774039d75a48ccc807b3eb1d2b3a;hb=35f91ea7421eb9bb1e6d024086be46eb0d7befb0;hp=d460b418072c5e4a7e2a0ed891fe4710dcf2805d;hpb=3e3138025852408ef03f3213972e042e12841bed;p=blerg.git diff --git a/common/auth.c b/common/auth.c index d460b41..240ac47 100644 --- a/common/auth.c +++ b/common/auth.c @@ -380,6 +380,10 @@ int auth_check_token(const char *username, const char *given_token) { return 0; } ret = (stringring_find(sr, given_token, AUTHENTICATION_TIMEOUT) != -1); + if (ret == 1) { + /* Update token timestamp */ + stringring_touch(sr, given_token); + } stringring_close(sr); return ret;