|
4d9daca977
|
In README.md removed version.
|
2023-08-12 22:12:49 +04:00 |
|
|
310dfb0fe9
|
Updated dependencies.
|
2023-08-12 22:12:05 +04:00 |
|
|
406fb66c17
|
A little change to pkgdesc. Removed unused fields. Pass a VERSION var to make. Added a v prefix for tag and made use of pkgver. pkgrel was incremented.
|
2023-05-06 04:52:25 +04:00 |
|
|
918fb18d22
|
Added a VERSION variable in Makefile.
|
2023-05-06 04:50:32 +04:00 |
|
|
a5f46d9187
|
A little update for README.md.
|
2023-05-06 04:49:57 +04:00 |
|
|
352576385b
|
Removed bin/ dir.
|
2023-03-05 00:32:26 +04:00 |
|
|
e8129849c8
|
Version was up to 2.0.2.
|
2023-03-05 00:31:07 +04:00 |
|
|
7c513f9f24
|
Updated golang.org/x/image dependency to v0.5.0.
|
2023-03-05 00:30:50 +04:00 |
|
|
5a16c4d678
|
InMemoryCaptchaDB was renamed to InMemoryDB.
|
2023-03-05 00:30:24 +04:00 |
|
|
fe2c3c8e59
|
CaptchaDB interface was renamed to DB.
|
2023-03-05 00:29:44 +04:00 |
|
|
0311a391ed
|
Replace arav.top with arav.su.
|
2023-03-05 00:18:52 +04:00 |
|
|
4f254db2bb
|
Added tests for InMemoryCaptchaDB and DwellingCaptcha.
|
2023-01-12 04:42:23 +04:00 |
|
|
e26bdd64f5
|
Added more comments.
|
2023-01-12 04:41:09 +04:00 |
|
|
f3e68f4c41
|
Added missing expiry changing.
|
2023-01-12 04:40:54 +04:00 |
|
|
f9154ab02f
|
Removed unnecessary guard around delete().
|
2023-01-12 04:39:22 +04:00 |
|
|
fcb656d4ea
|
Module name was changet to git.arav.top/Arav/justcaptcha.
|
2023-01-08 18:49:33 +04:00 |
|
|
9bb80f1f6c
|
Version updated to 2.0.1. No drastic changes were made. Internal cleaning. Hope it is ready to be correctly used as a library.
|
2023-01-08 18:36:39 +04:00 |
|
|
ee93284cdc
|
Added a library usage example in README.
|
2023-01-08 18:34:35 +04:00 |
|
|
073384cc34
|
ExpiryDate() func was being used in just one place, so it was removed.
|
2023-01-08 18:21:46 +04:00 |
|
|
6ab62fc43b
|
getURLParam() was made into a private module func.
|
2023-01-08 17:53:13 +04:00 |
|
|
ea9877f6c4
|
HTTP server and handlers were restructurised.
|
2023-01-08 17:49:03 +04:00 |
|
|
49a64f553e
|
README updated.
|
2023-01-08 17:38:51 +04:00 |
|
|
275e3c500b
|
Dependency update.
|
2023-01-08 17:32:31 +04:00 |
|
|
e4225db960
|
Changed defaults. Now expiry is 10 minutes and socket named just as sock.
|
2023-01-08 17:04:20 +04:00 |
|
|
b91c24998a
|
SystemD service moved out to the root of init dir and renamed to systemd.service.
|
2023-01-08 17:02:43 +04:00 |
|
|
d7599bdf46
|
HTTP server moved to internal. DwellingCaptcha moved to pkg.
|
2023-01-08 17:00:19 +04:00 |
|
|
29e4666bd9
|
Mention of 404 error was removed from GET /:captcha_id description.
|
2022-10-21 00:03:09 +04:00 |
|
|
6e4242e6cd
|
Return of errors was removed from Image(), Solve(), IsSolved(), and Remove() methods.
|
2022-10-21 00:01:19 +04:00 |
|
|
c0d776fa40
|
Return of errors was removed for methods of CaptchaDB interface.
|
2022-10-20 23:50:42 +04:00 |
|
|
cebf4b572f
|
README updated. 404 codes for solving was removed.
|
2022-10-20 23:50:02 +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 |
|
|
cc30010d3f
|
Field expireIn -> expiry. Comments were redacted.
|
2022-10-20 22:56:28 +04:00 |
|
|
d9aba868db
|
db.go. InMemoryCaptchaDB was moved out. ErrorNotFound is now public. And DefaultExpiredScanInterval is now a public const. For more security a string of random data added to the end of a hash.
|
2022-10-20 22:55:37 +04:00 |
|
|
4078bb03bc
|
InMemoryCaptchaDB is now within its own package alongside with an instance.
|
2022-10-20 22:52:13 +04:00 |
|
|
0e0c91b5c2
|
instance.go was removed and its content was made as part of InMemoryCaptchaDB.
|
2022-10-20 22:51:32 +04:00 |
|
|
b155900579
|
GET / was changed to POST / for a new CAPTCHA creation. And now captcha db is being initialised in handlers.
|
2022-10-20 22:50:49 +04:00 |
|
|
aa6534aa98
|
DwellingCaptcha's package was renamed to dwcaptcha.
|
2022-10-20 22:49:46 +04:00 |
|
|
07c8a90ada
|
README updated.
|
2022-10-20 22:49:08 +04:00 |
|
|
fa47cfa20e
|
Updated version to 2.0.0.
|
2022-10-20 22:48:20 +04:00 |
|
|
2c121322cf
|
Updated dependencies.
|
2022-10-20 22:47:57 +04:00 |
|
|
2c22ff00e6
|
Added comments for BaseCaptcha. Fixed comments for the Captcha interface.
|
2022-08-29 00:02:58 +04:00 |
|
|
d24b710ee5
|
Forgot about README. Version is changed there as well.
|
2022-08-28 23:37:58 +04:00 |
|
|
bc800f0472
|
A version is increased to 1.2.0.
|
2022-08-28 23:35:24 +04:00 |
|
|
7e506ee982
|
A README was rewritten and complemented with a new behavior of a GET /:id endpoint.
|
2022-08-28 23:33:59 +04:00 |
|
|
691659c2d0
|
Added a Remove() method to a DB instance.
|
2022-08-28 23:32:42 +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 |
|
|
c90f5db3a8
|
Added Remove() method. CAPTCHA word is capitalised in comments. In IsSolved() method of a DB a CAPTCHA's IsSolved method is now called within a return statement.
|
2022-08-28 23:27:54 +04:00 |
|
|
4a7dce3327
|
Oops, removed file renaming.
|
2022-08-25 04:58:39 +04:00 |
|