modx-ccc-2015 / whishlist

The overall repository with MODX issues to tackle together at the MODX CCC 2015. This place is ment to be as a big pond of possibilies.
0 stars 0 forks source link

password generator for new user accounts #68

Open Gallenkamp opened 9 years ago

Gallenkamp commented 9 years ago

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; }