From a5a4ab8bcc8d605af919069f4e71bd0acb9a82cf Mon Sep 17 00:00:00 2001 From: Tom Hughes Date: Mon, 7 Nov 2016 11:31:58 +0000 Subject: [PATCH] Expire old oauth nonces --- script/cleanup | 1 + 1 file changed, 1 insertion(+) diff --git a/script/cleanup b/script/cleanup index d7f29239c..3eaeef7c6 100755 --- a/script/cleanup +++ b/script/cleanup @@ -3,5 +3,6 @@ require File.dirname(__FILE__) + "/../config/environment" UserToken.delete_all("expiry < NOW()") +OauthNonce.delete_all("timestamp < EXTRACT(EPOCH FROM NOW() - INTERVAL '1 day')") exit 0 -- 2.43.2