NewDwellingCaptcha is now called by an instance.
This commit is contained in:
parent
916b85500d
commit
0bd37dc5fa
@ -16,8 +16,7 @@ func New() *CaptchaHandlers {
|
||||
}
|
||||
|
||||
func (h *CaptchaHandlers) New(w http.ResponseWriter, r *http.Request) {
|
||||
dc := captcha.NewDwellingCaptcha(captcha.GetExpiry())
|
||||
_, id := captcha.New(r.RemoteAddr, dc)
|
||||
_, id := captcha.New(r.RemoteAddr)
|
||||
|
||||
fmt.Fprint(w, id)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user