expiry: add option to delete after n days

Much like activities, you can have an expired account disabled, then
deleted after n days (unless the admin intervenes and re-enables the
account).

For #341.
This commit is contained in:
Harvey Tindall
2024-08-05 14:09:02 +01:00
parent 3c3297c8e7
commit 86c37fb423
3 changed files with 83 additions and 66 deletions
+3 -2
View File
@@ -63,8 +63,9 @@ type Activity struct {
}
type UserExpiry struct {
JellyfinID string `badgerhold:"key"`
Expiry time.Time
JellyfinID string `badgerhold:"key"`
Expiry time.Time
DeleteAfterPeriod bool // Whether or not to further disable the user later on
}
type DebugLogAction int