Added missing expiry changing.
This commit is contained in:
parent
f9154ab02f
commit
f3e68f4c41
@ -54,6 +54,7 @@ func (imcdb *InMemoryCaptchaDB) GetExpiry() time.Duration {
|
||||
|
||||
// SetExpiry changes an expiry duration to a new one.
|
||||
func (imcdb *InMemoryCaptchaDB) SetExpiry(expiry time.Duration) {
|
||||
imcdb.expiry = expiry
|
||||
if expiry < captcha.DefaultExpiredScanInterval {
|
||||
imcdb.expiryScanInterval = expiry
|
||||
} else {
|
||||
|
Loading…
Reference in New Issue
Block a user