Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Generate longer captchas #3

Open
wirespecter opened this issue Mar 5, 2017 · 6 comments
Open

Generate longer captchas #3

wirespecter opened this issue Mar 5, 2017 · 6 comments

Comments

@wirespecter
Copy link

wirespecter commented Mar 5, 2017

Every captcha that is generated is 5 characters long.

If I want to generate an 8-length captcha using the code below:
const { token, buffer } = captcha(8)

A 5-length captcha is generated instead.

@fundon
Copy link
Member

fundon commented Mar 7, 2017

Ok, I like this feature.

@fundon
Copy link
Member

fundon commented Mar 18, 2017

@vipersec See https://github.com/trekjs/captcha/tree/pure-js.

I had refactored it to pure JS. We can do more.

@mtsee
Copy link

mtsee commented Sep 2, 2017

SyntaxError: Unexpected token function
at exports.runInThisContext (vm.js:53:16)
at Module._compile (module.js:387:25)
at babelWatchLoader (D:\DT\H5DS3.0\build\node_modules.2.0.7@babel-watch\run
ner.js:50:13)
at Object.require.extensions.(anonymous function) [as .js] (D:\DT\H5DS3.0\bu
ild\node_modules.2.0.7@babel-watch\runner.js:61:7)
at Module.load (module.js:357:32)
at Function.Module._load (module.js:314:12)
at Module.require (module.js:367:17)
at require (internal/module.js:16:19)
at Object. (D:\DT\H5DS3.0\build\router.js:13:19)
at Module._compile (module.js:413:34)

@fundon
Copy link
Member

fundon commented Sep 9, 2017

@mtsee Which Node.js version you are using?

@mtsee
Copy link

mtsee commented Sep 9, 2017

v6.2.0

@fundon
Copy link
Member

fundon commented Sep 9, 2017

async/await requires v8+.

# for free to join this conversation on GitHub. Already have an account? # to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants