Add option to select whether to delete the already expired tokens in each cron run

Created on 18 July 2023, 12 months ago
Updated 13 September 2023, 10 months ago

Problem/Motivation

Currently, expired tokens will be deleted in each cron regardless if the user wants it or not. Make an option in the settings form to give the control to the user.

Proposed resolution

  1. Create a checkbox in the settings form, in the general tab.
    • The checkbox must be called `Delete expired tokens`.
    • The description must be `If selected, the tokens that have been used or whose timestamp has expired will be deleted in each cron run`.
    • It must default to FALSE.
    • The field must be called `delete_expired_tokens`
  2. Add the default value into the settings YML file
  3. Check the value in the cron hook
✨ Feature request
Status

Fixed

Version

1.0

Component

Code

Created by

🇨🇷Costa Rica robertarias

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Production build 0.69.0 2024