Commit Graph

6 Commits

Author SHA1 Message Date
kor-elf 10425db5e0 Fixed a bug where two identical symbols appeared in a captcha.
The commit fixes an issue where wrong variable was passed as second argument to randomSymbols method. Previously it was using an uninitialized variable 'fakes' which was supposed to be populated by 'success' variable. The 'success' variable already has the set of valid symbols which should be used to generate fake symbols for captcha.
2023-11-26 15:25:36 +06:00
kor-elf 56cd409301 The return comment of the getCoordinators method has been changed. 2023-09-19 14:21:56 +06:00
kor-elf a35b8db281 Add captcha image generation functionality. 2023-06-28 17:29:56 +06:00
kor-elf 81635b4efa This commit adds an ImageManager class that handles the creation of Image instances. It implements an ImageManagerContract, thereby adhering to set guidelines for the creation of captchas. The ImageManager class contains a createImage method capable of creating new instances of Image, allowing for increased flexibility and consistency in CAPTCHA image generation. 2023-06-28 17:26:15 +06:00
kor-elf c1cf5a1ae9 This change introduces ImageLines, an interface for adding randomized lines to captcha images for enhanced security. The interface has been implemented in the Lines class. The goal is to randomize lines on captcha images to prevent bot reads. 2023-06-28 17:24:41 +06:00
kor-elf f2ecdfcf97 This commit adds an Image interface and implementation that will be used in the Captcha generation process. The Image object includes methods for manipulating an image, such as adding text, inserting a background, and adding a line. These methods will provide the necessary functionalities for generating a Captcha. 2023-06-28 17:22:19 +06:00