Expire old oauth nonces
This commit is contained in:
parent
f6f00febf5
commit
a5a4ab8bcc
1 changed files with 1 additions and 0 deletions
|
@ -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
|
||||
|
|
Loading…
Add table
Reference in a new issue