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 generator for new user accounts #68

Open
Gallenkamp opened this issue Feb 8, 2015 · 0 comments
Open

password generator for new user accounts #68

Gallenkamp opened this issue Feb 8, 2015 · 0 comments

Comments

@Gallenkamp
Copy link

generate + show plain on demand

something like this:
http://stackoverflow.com/questions/1497481/javascript-password-generator
function generatePassword() {
var length = 8,
charset = "abcdefghijklnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789",
retVal = "";
for (var i = 0, n = charset.length; i < length; ++i) {
retVal += charset.charAt(Math.floor(Math.random() * n));
}
return retVal;
}

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

1 participant