This commit is contained in:
Savetheinternet 2011-04-06 18:43:35 +10:00
parent 6267a23947
commit 5c5385caf6

View File

@ -29,7 +29,7 @@ function focusId(id)
function generatePassword() {
pass = '';
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+';
chars = '{config[genpassword_chars]}';
for(i=0;i<8;i++) {
rnd = Math.floor(Math.random() * chars.length);
pass += chars.substring(rnd,rnd + 1);