mirror of
https://github.com/myvesta/vesta
synced 2025-08-20 13:24:25 -07:00
fixed password generator
This commit is contained in:
parent
52bde02d10
commit
d3c0d8cba3
1 changed files with 2 additions and 2 deletions
|
@ -27,7 +27,7 @@
|
||||||
</tr>
|
</tr>
|
||||||
</table>
|
</table>
|
||||||
|
|
||||||
<form id="vstobjects" name="v-add-user" method="post">
|
<form id="vstobjects" name="v_add_user" method="post">
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
function randomString() {
|
function randomString() {
|
||||||
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
|
var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
|
||||||
|
@ -37,7 +37,7 @@
|
||||||
var rnum = Math.floor(Math.random() * chars.length);
|
var rnum = Math.floor(Math.random() * chars.length);
|
||||||
randomstring += chars.substring(rnum,rnum+1);
|
randomstring += chars.substring(rnum,rnum+1);
|
||||||
}
|
}
|
||||||
document.v-add-user.v_password.value = randomstring;
|
document.v_add_user.v_password.value = randomstring;
|
||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue