Skip to content

Commit d3c0d8c

Browse files
committed
fixed password generator
1 parent 52bde02 commit d3c0d8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/templates/admin/add_user.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@
2727
</tr>
2828
</table>
2929

30-
<form id="vstobjects" name="v-add-user" method="post">
30+
<form id="vstobjects" name="v_add_user" method="post">
3131
<script type="text/javascript">
3232
function randomString() {
3333
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
@@ -37,7 +37,7 @@
3737
var rnum = Math.floor(Math.random() * chars.length);
3838
randomstring += chars.substring(rnum,rnum+1);
3939
}
40-
document.v-add-user.v_password.value = randomstring;
40+
document.v_add_user.v_password.value = randomstring;
4141
}
4242
</script>
4343

0 commit comments

Comments
 (0)