mirror of
https://github.com/serghey-rodin/vesta.git
synced 2026-07-30 18:30:10 +02:00
19 lines
596 B
HTML
19 lines
596 B
HTML
<script>
|
|
$(function() {
|
|
$('#v_email').change(function() {
|
|
document.getElementById('v_notify').value = document.getElementById('v_email').value;
|
|
});
|
|
});
|
|
|
|
function randomString() {
|
|
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
|
|
var string_length = 10;
|
|
var randomstring = '';
|
|
for (var i = 0; i < string_length; i++) {
|
|
var rnum = Math.floor(Math.random() * chars.length);
|
|
randomstring += chars.substr(rnum, 1);
|
|
}
|
|
document.v_add_user.v_password.value = randomstring;
|
|
}
|
|
</script>
|