Commit Graph

15 Commits

Author SHA1 Message Date
d7599bdf46
HTTP server moved to internal. DwellingCaptcha moved to pkg. 2023-01-08 17:00:19 +04:00
6e4242e6cd
Return of errors was removed from Image(), Solve(), IsSolved(), and Remove() methods. 2022-10-21 00:01:19 +04:00
be2f34f629
http.Error() func is used to send error messages and codes. 2022-10-20 23:16:30 +04:00
93e1344846
Handlers are edited to work with modified interfaces. Status codes are changed. Now 404 is not being returned if parameter ?remove was set. 2022-10-20 22:58:14 +04:00
0b064e8977
Added a remove URL query parameter for IsSolved() handler. Calls a Remove() method of a DB. 2022-08-28 23:32:16 +04:00
ae67f6aa4f
PNG was replaced by JPEG because of smaller image sizes. ~11.5KB for PNG vs just <2KB for JPEG with 20% quality. 2022-08-28 23:30:38 +04:00
0bd37dc5fa
NewDwellingCaptcha is now called by an instance. 2022-08-19 02:09:43 +04:00
59bd479ebe
Image now passed by a pointer instead of value. Hope it will help with memory consumption a little. 2022-08-17 21:47:27 +04:00
f5ea776e87
handlers.go. Now image is being returned by value. 2022-07-30 15:35:13 +04:00
96c13ec6b2
Added support for different styles for CAPTCHA. 2022-06-27 01:20:36 +04:00
0957102169
Removed reduntant cast to captcha.ID. 2022-06-27 01:13:25 +04:00
8053952122
Captcha implementation was moved off to pkg directory to be able to be used as an external library. 2022-06-26 23:53:52 +04:00
3ebfcb2c95
In handlers.go GetExpireInterval() changed to GetExpiry(). 2022-06-26 20:54:15 +04:00
4af8d67299
Expiration time now being get from CaptchaDB. 2022-06-26 15:45:42 +04:00
21b2f24986
Initial commit with a fully working program, lel. 2022-06-24 23:09:46 +04:00