accounts: add "extend from previous expiry"

If the expiry time of an expired user is still in the activity log,
extending and re-enabling a user with this option checked will extend
the expiry from this time, rather than the current time. For #379, i
think this is basically what they wanted.
This commit is contained in:
Harvey Tindall
2025-11-26 15:30:45 +00:00
parent 875387166e
commit 5e653c51f3
7 changed files with 124 additions and 63 deletions

View File

@@ -186,7 +186,11 @@ const (
IncorrectCaptcha = "captcha incorrect"
ExtendCreateExpiry = "Extended or created expiry for user \"%s\""
ExtendCreateExpiry = "Extended or created expiry for user \"%s\""
FoundExistingExpiry = "Found existing expiry key"
FoundPreviousExpiryLog = "Found most recent previous expiry in activity log @ %v"
ExpiryWouldBeInPast = "Expiry would've been in the past, using current time base"
PreviousExpiryNotExpiry = "Last user disable was not an expiry, using current time base"
UserEmailAdjusted = "Email for user \"%s\" adjusted"
UserAdminAdjusted = "Admin state for user \"%s\" set to %t"