Commit Graph

74 Commits

Author SHA1 Message Date
1abd0da118
In Makefile -expire flag fixed to a new -expiry. 2022-06-26 21:00:34 +04:00
a23c80ae88
GenerateImage() method was changed to be private. 2022-06-26 21:00:06 +04:00
3ebfcb2c95
In handlers.go GetExpireInterval() changed to GetExpiry(). 2022-06-26 20:54:15 +04:00
3251b68629
In instance.go GetExpireInterval() changed to GetExpiry(). And changed name of corresponding field of CaptchaDB to ExpireIn. 2022-06-26 20:53:48 +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
1dd070abd4
Refactor of db.go to change expiration and expire to expiry. ExpireInterval field renamed to ExpireIn. 2022-06-26 20:49:43 +04:00
2e3d41a628
Changed Expire() method in ICaptcha to Expiry().
ExpireDate() changed to ExpiryDate() and its argument expiration changed to expiry.
2022-06-26 20:47:25 +04:00
d04870ae40
-expire flag changed to a new -expiry in systemd unit. 2022-06-26 20:44:38 +04:00
74b8c2d96a
Refactor of main.go to correct terms. 2022-06-26 20:43:18 +04:00
be4050d1f5
Removed excessive variable n, and multiplying by time.Second. 2022-06-26 20:36:36 +04:00
0c1972461e
run-test target renamed to just run in Makefile. 2022-06-26 16:49:42 +04:00
3db89cde4f
Removed clean target from Makefile. 2022-06-26 16:49:23 +04:00
4121ba9ad3
A more sane variable names in Makefile. 2022-06-26 16:46:26 +04:00
4bff49fe2f
Added mention of 500 HTTP error code for image endpoint. 2022-06-26 15:47:15 +04:00
e30c3663d4
Removed passing of expiration time to HTTP handlers. 2022-06-26 15:46:49 +04:00
7a7c3107d8
Added GetExpireInterval() wrapper for CaptchaDB instance. 2022-06-26 15:46:23 +04:00
4af8d67299
Expiration time now being get from CaptchaDB. 2022-06-26 15:45:42 +04:00
c5d159531c
Added GetExpireInterval() method to DB. 2022-06-26 15:44:41 +04:00
f0ced332e8
This validity check is reduntant. 2022-06-26 14:55:05 +04:00
1130568e39
Actually, this check is reduntant, move defering to network type check. 2022-06-26 14:54:11 +04:00
e9dc53e542
Defer unix-socket remove only if a unix-socket actually being used. 2022-06-26 14:50:39 +04:00
3685907891
Fixed a typo in path to unix-socket. 2022-06-26 14:45:21 +04:00
21b2f24986
Initial commit with a fully working program, lel. 2022-06-24 23:09:46 +04:00