mirror of
https://github.com/discourse/discourse.git
synced 2025-02-06 03:18:23 +00:00
d93c2cb3d2
* FEATURE: site settings to revoke api keys older than a number of days
12 lines
185 B
Ruby
12 lines
185 B
Ruby
# frozen_string_literal: true
|
|
|
|
module Jobs
|
|
class CleanUpApiKeysMaxLife < ::Jobs::Scheduled
|
|
every 1.day
|
|
|
|
def execute(args)
|
|
ApiKey.revoke_max_life_keys!
|
|
end
|
|
end
|
|
end
|