Commit Graph

17 Commits

Author SHA1 Message Date
hrj
8316084ee7 create equal number of captchas for each parameter combination in background task
Signed-off-by: hrj <harshad.rj@gmail.com>
2022-03-01 09:37:33 +05:30
hrj
52b071d680 renamed Captcha to CaptchaManager
Signed-off-by: hrj <harshad.rj@gmail.com>
2022-02-24 20:12:58 +05:30
hrj
497b88f0d3 simplify logic for background task
Signed-off-by: hrj <harshad.rj@gmail.com>
2022-02-24 20:12:58 +05:30
Rahul Rudragoudar
ecff4087ad Convert objects to classes
Update references

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-05-02 16:58:14 +05:30
Rahul Rudragoudar
30bb26473e Update random generator reference
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-24 19:37:44 +05:30
Rahul Rudragoudar
d62951fa51 Minor fix
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-21 14:56:58 +05:30
Rahul Rudragoudar
aa5e7da0bc Merge branch 'BT-captcha' of github.com:rr83019/lc-core into BT-captcha 2021-04-21 14:45:42 +05:30
Rahul Rudragoudar
98c304ccd4 Pick a random captcha provider instead of params
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-21 14:39:20 +05:30
Rahul Rudragoudar
241be1631c Minor fix
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-21 13:53:35 +05:30
Rahul Rudragoudar
8f0f29c579 Minor fix
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-20 13:53:08 +05:30
Rahul Rudragoudar
3682b2cb7d Randomize captcha generation
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-20 03:06:47 +05:30
Rahul Rudragoudar
43331f8dd7 Improve Error handling/messages (#82)
* Add image error fields

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update models

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Improve error handling/messages

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Minor reformat

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Improve error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add base trait

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Decouple data access methods
Improve error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Minor reformat

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add pattern matching to handle error
Remove try except blocks

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-16 23:22:21 +05:30
Rahul Rudragoudar
4612dfa1cd Migrate to HttpServer (#76)
* Migrate to Fibry

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Improve error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update models and fields

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Enable fibry server

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update .gitignore

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Convert captcha class to object

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Rollback error handling

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Update models

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Migrate to sun http server

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Refactor: Linter and formatter

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Remove redundant dependancy

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-04-11 17:57:15 +05:30
Rahul Rudragoudar
6c4a3d0152 Add config time support to captcha expiry
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-02 21:52:30 +05:30
Rahul Rudragoudar
0906d6b906 Minor updates
Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-03-02 21:34:38 +05:30
Rahul Rudragoudar
de50d8123e Linter and Formatter support (#58)
* Add scala linter and formatter

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add java formatter

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add linter support

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Increase maxColumn limit

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Reformat and lint

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Minor reformatting

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add scala formatter on compile option

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Enable scala linter for CI

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-25 23:49:39 +05:30
Rahul Rudragoudar
6d04cdc3b4 Refactor modules (#56)
* Refactor:Modules

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Add config file

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>

* Restore sample images

Signed-off-by: Rahul Rudragoudar <rr83019@gmail.com>
2021-02-24 15:21:16 +05:30