-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Displaying undefined on 4 characters #43
Comments
Which version of captcha-canvas you are using right now? |
Version: 3.1.0 |
ok, issue is confirmed I will try to solve it today thank you for reporting this. For the time you can use CaptchaGenerator |
Okay, for the time being, I will use 6 characters and wait for the bug to be fixed. :) |
To solve this problem you have to use drawCaptcha before addDecoy and drawTrace. So, // wrong
const captcha = new Captcha(100, 100);
captcha.addDecoy().drawTrace().drawCaptcha({ characters: 4 }); // right
const captcha = new Captcha(100, 100);
captcha.drawCaptcha({ characters: 4 }).addDecoy().drawTrace(); Try this and let me know if you are still facing any problems. |
New release v3.1.1 will solve your issue. const captcha = new Captcha(100, 100, 4);
captcha.addDecoy().drawTrace().drawCaptcha(); This will create a captcha with 4 characters and also you can draw a captcha above the decoy and trace line. |
okay thanks
…On Tue, Aug 9, 2022, 11:44 AM Shreyash Raj ***@***.***> wrote:
New release v3.1.1 will solve your issue.
const captcha = new Captcha(100, 100, 4);captcha.addDecoy().drawTrace().drawCaptcha();
This will create a captcha with 4 characters and also you can draw a
captcha above the decoy and trace line.
—
Reply to this email directly, view it on GitHub
<#43 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AODGOTXEECIHQAUDAZIVPMLVYHZLXANCNFSM5377URXQ>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Let me know if your issue is resolved or not. If it is resolved then please close the issue |
I tried to set the characters limit to 4 but it displays those 4 characters but also says undefined at the end.
The text was updated successfully, but these errors were encountered: