1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2025-01-19 01:24:05 +01:00
This commit is contained in:
Savetheinternet 2011-04-06 18:43:35 +10:00
parent 61bc31f521
commit 8f9a6b839f

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