all repos — captcha @ acce4f8f76b3903b2e1192365a6eedbecb0e1ef5

Go package captcha implements generation and verification of image and audio CAPTCHAs.

Fix expiration constant.
Dmitry Chestnykh dmitry@codingrobots.com
Mon, 16 Jan 2012 15:14:49 +0100
commit

acce4f8f76b3903b2e1192365a6eedbecb0e1ef5

parent

90a7bd4b43b3a24663fb6a57ddfe33e4b291d971

1 files changed, 2 insertions(+), 1 deletions(-)

jump to
M captcha.gocaptcha.go

@@ -49,6 +49,7 @@ import (

"bytes" "errors" "io" + "time" ) const (

@@ -58,7 +59,7 @@ // The number of captchas created that triggers garbage collection used

// by default store. CollectNum = 100 // Expiration time of captchas used by default store. - Expiration = 10 * 60 // 10 minutes + Expiration = 10 * time.Minute ) var (