diff options
author | the lemons <citrons@mondecitronne.com> | 2023-04-08 22:33:02 -0500 |
---|---|---|
committer | the lemons <citrons@mondecitronne.com> | 2023-04-08 22:33:02 -0500 |
commit | 03b4ac584ea0b611b8cd9cbca247fa55194ab294 (patch) | |
tree | cf231db6610e9530e83fb534c60633dc1ba76050 | |
parent | b30b3bd0faae77830944def1713781c5bf1b3fab (diff) |
decrease TTL for tokens
-rwxr-xr-x | auth.cgi | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -301,7 +301,7 @@ post["^/api/user/(%w+)/auth/([^/]+)$"] = function(info, uid, service) if user:check_token(info.form.token) == service then j.valid = true j.user = user_json(user) - j.ttl = 800 + j.ttl = 120 else j.valid = false j.ttl = 9999999 |