commit: | 859f2b6bd8846ff685a61eec72e96753a8c956f5 |
author: | Chip Black |
committer: | Chip Black |
date: | Fri Jul 25 18:17:04 2014 -0500 |
parents: | 22ea1c1c4327635ca2ac9a7e2b7b074bd03201ba |
diff --git a/common/auth.c b/common/auth.c line changes: +4/-0 index d460b41..240ac47 --- 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;