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

force upper and lower and digits in password? #438

Closed
gpinkham opened this issue Oct 23, 2015 · 1 comment · Fixed by #441
Closed

force upper and lower and digits in password? #438

gpinkham opened this issue Oct 23, 2015 · 1 comment · Fixed by #441

Comments

@gpinkham
Copy link

is there a way to guarantee there will be upper and lower and digits in the random password? I typically only get lower and digits which causes my tests to fail as the password also needs upper.. (if not available I'll try to code it and issue pull) thanks!

2.1.5 :001 > Faker::Internet.password(8)
 => "xlhhgdj48" 
2.1.5 :002 > Faker::Internet.password(8)
 => "aj8mo068x" 
2.1.5 :003 > Faker::Internet.password(8)
 => "v4sqp56bc" 
2.1.5 :004 > Faker::Internet.password(8)
 => "h7p5whznr" 
2.1.5 :005 > Faker::Internet.password(8)
 => "m25phchl" 

Gary

@gpinkham
Copy link
Author

for the record I saw closed issue #196 but wasn't sure if that was implying you'd always get upper and lower and digits or just sometimes..

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

Successfully merging a pull request may close this issue.

1 participant