fixed password generator

This commit is contained in:
Serghey Rodin 2012-11-14 02:13:24 +02:00
commit d3c0d8cba3

View file

@ -27,7 +27,7 @@
</tr>
</table>
<form id="vstobjects" name="v-add-user" method="post">
<form id="vstobjects" name="v_add_user" method="post">
<script type="text/javascript">
function randomString() {
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
@ -37,7 +37,7 @@
var rnum = Math.floor(Math.random() * chars.length);
randomstring += chars.substring(rnum,rnum+1);
}
document.v-add-user.v_password.value = randomstring;
document.v_add_user.v_password.value = randomstring;
}
</script>