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

Limit the code to 4 digits #1

Open
meshal500 opened this issue Feb 25, 2017 · 1 comment
Open

Limit the code to 4 digits #1

meshal500 opened this issue Feb 25, 2017 · 1 comment

Comments

@meshal500
Copy link

meshal500 commented Feb 25, 2017

Hi,

Thanks for this great module.

Is there a way to limit the generated code to 4 digits? currently some times it generates 5 digits.

@mcwebb
Copy link
Owner

mcwebb commented Mar 2, 2017

Hi @meshal500!
At the moment there is no configuration option to define how many digits to use for the code.
But a PR would be most welcome! This line is where the code is generated: https://github.com/mcwebb/angular-twilio-verification/blob/master/angular-twilio-verification.js#L19
And you could provide an additional config method like the setFromNumber.

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

No branches or pull requests

2 participants