Skip to content
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

Update index.js #50

Open
wants to merge 1 commit into
base: 1.x
Choose a base branch
from
Open

Update index.js #50

wants to merge 1 commit into from

Conversation

andzx
Copy link

@andzx andzx commented Jul 21, 2020

Node v12.14.1

let captcha = svgCaptcha('TEST2', {size: 5}) should return a captcha with the text TEST2, but returns undefined instead.
Alternatively I tried let captcha = svgCaptcha.create('TEST2', {size: 5}), but it didn't work ether.

Thus I propose that the create function has a text option also which produces the result of seeing TEST2 as captcha text when that text is given to the create function.

Node v12.14.1

let captcha = svgCaptcha('TEST2', {size: 5}) should return a captcha with the text TEST2, but returns undefined instead.
Alternatively I tried let captcha = svgCaptcha.create('TEST2', {size: 5}), but it didn't work ether.

Thus I propose that the create function has a text option also which produces the result of seeing TEST2 as captcha text when that text is given to the create function.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant