Skip to content

Commit

Permalink
Updated captchaGenerator with new Captcha format
Browse files Browse the repository at this point in the history
  • Loading branch information
Shashank3736 committed Aug 9, 2022
1 parent 39c74fb commit 698e808
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ts-script/CaptchaGenerator.ts
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ export class CaptchaGenerator {
* @since 2.2.0
*/
generateSync(option: { background?: Image } = {}): Buffer {
const captchaCanvas = new Captcha(this.width, this.height);
const captchaCanvas = new Captcha(this.width, this.height, this.captcha.characters);
captchaCanvas.async = false;

if(option.background) captchaCanvas.drawImage(option.background);
Expand Down

0 comments on commit 698e808

Please sign in to comment.