|
4b0577f1bd
|
GetAnswer() method changed into Answer().
|
2022-08-19 02:24:00 +04:00 |
|
|
c6bd1a6185
|
NewBaseCaptcha() constructor is being used now.
|
2022-08-19 02:22:16 +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 |
|
|
f35c16f837
|
CAPTCHA implementation changed to a new interface. And now composes from BaseCaptcha struct.
|
2022-07-30 15:33:34 +04:00 |
|
|
a31c995909
|
Better CAPTCHA image generation algorithm.
|
2022-06-27 20:48:39 +04:00 |
|
|
f2d7271111
|
Lets reduce string comparisons here.
|
2022-06-27 03:03:22 +04:00 |
|
|
a3faf8b9c9
|
Made use of a new style name feature and implemented a dark style, and now by default light version is being rendered.
|
2022-06-27 01:30:28 +04:00 |
|
|
504a8d137f
|
A simple refactor of generateImage() rearranging method calls in for loops.
|
2022-06-27 01:25:28 +04:00 |
|
|
96c13ec6b2
|
Added support for different styles for CAPTCHA.
|
2022-06-27 01:20:36 +04:00 |
|
|
6307433ea0
|
Removed instantiating of Answer field in NewDwellingCaptcha().
|
2022-06-27 00:44:42 +04:00 |
|
|
9e7f3a2728
|
When I moved implementation to pkg directory an error appeared that DwellingCaptcha doesn't implement generateImage() method. And these methods was copied here to resolve this problem. But, actual fix was implementing an empty generateImage() method for base Captcha struct.
|
2022-06-26 23:57:16 +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 |
|
|
96e8cf0c97
|
Methods Solve, GetAnswer, IsSolved, and Expiry could be implemented once for a base Captcha struct. But GetImage and generateImage methods should be implemented by all structs that compose with base Captcha struct.
|
2022-06-26 22:02:38 +04:00 |
|
|
a23c80ae88
|
GenerateImage() method was changed to be private.
|
2022-06-26 21:00:06 +04:00 |
|
|
bb4b3bd1ba
|
Method Expire() changed to Expiry().
|
2022-06-26 20:52:29 +04:00 |
|
|
f7d55b9c44
|
In dwelling_captcha.go. Renamed ExpireDate() to ExpiryDate(). In NewDwellingCaptcha() argument expiration changed to expiry.
|
2022-06-26 20:51:04 +04:00 |
|
|
21b2f24986
|
Initial commit with a fully working program, lel.
|
2022-06-24 23:09:46 +04:00 |
|