mirror of
https://github.com/hrfee/jfa-go.git
synced 2026-03-18 21:50:33 +01:00
expiry: add "remind N days before"
new setting to send an email/message N days before a user is due to expire. Multiple can be set.
This commit is contained in:
@@ -552,6 +552,7 @@ func (app *appContext) ExtendExpiry(gc *gin.Context) {
|
||||
}(id, expiry.Expiry)
|
||||
}
|
||||
}
|
||||
app.InvalidateWebUserCache()
|
||||
respondBool(204, true, gc)
|
||||
}
|
||||
|
||||
@@ -563,6 +564,7 @@ func (app *appContext) ExtendExpiry(gc *gin.Context) {
|
||||
// @tags Users
|
||||
func (app *appContext) RemoveExpiry(gc *gin.Context) {
|
||||
app.storage.DeleteUserExpiryKey(gc.Param("id"))
|
||||
app.InvalidateWebUserCache()
|
||||
respondBool(200, true, gc)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user