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

Password rules #6

Open
maasencioh opened this issue Mar 15, 2017 · 3 comments
Open

Password rules #6

maasencioh opened this issue Mar 15, 2017 · 3 comments

Comments

@maasencioh
Copy link
Contributor

A possibility is to ask for something like

const passwordRegex = /^(?=.*\d)(?=.*[a-z])(?=.*[A-Z])[0-9a-zA-Z]{8,}$/;

The explanation is:

(/^
(?=.*\d)                //should contain at least one digit
(?=.*[a-z])             //should contain at least one lower case
(?=.*[A-Z])             //should contain at least one upper case
[a-zA-Z0-9]{8,}         //should contain at least 8 from the mentioned characters
$/)
@maasencioh
Copy link
Contributor Author

What do you think guys @UNArqui17i-B/developers ?

@lawih
Copy link
Member

lawih commented Apr 3, 2017

Does (or should) it allow this kind of characters: &$%#* ?

@maasencioh
Copy link
Contributor Author

not yet, but we could add them

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