1
1
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 16:44:26 +00:00
gitea/services/cron
Gusted 61f939359d
Use a better OlderThan for DeleteInactiveUsers (#19693)
* Use a better OlderThan for DeleteInactiveUsers

- Currently the OlderThan is zero, for instances that enable or run this
task this could actually delete just new users that still need to
confirm their email. This patch fixes that by setting the default to the
`ActiveCodeLives` setting, which corresponds to the amount of time that
a user can active their account, thus avoiding the issue of deleting
unactivated email users.

* Use correct duration
2022-05-13 14:49:22 +02:00
..
cron.go Add Goroutine stack inspector to admin/monitor (#19207) 2022-03-31 19:01:43 +02:00
setting.go Remove legacy unmaintained packages, refactor to support change default locale (#19308) 2022-04-03 17:46:48 +08:00
tasks_basic.go Add Package Registry (#16510) 2022-03-30 16:42:47 +08:00
tasks_extended.go Use a better OlderThan for DeleteInactiveUsers (#19693) 2022-05-13 14:49:22 +02:00
tasks.go Show last cron messages on monitor page (#19223) 2022-03-29 02:31:07 +01:00