...
This commit is contained in:
parent
6267a23947
commit
5c5385caf6
@ -29,7 +29,7 @@ function focusId(id)
|
|||||||
|
|
||||||
function generatePassword() {
|
function generatePassword() {
|
||||||
pass = '';
|
pass = '';
|
||||||
chars = 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789!@#$%^&*()_+';
|
chars = '{config[genpassword_chars]}';
|
||||||
for(i=0;i<8;i++) {
|
for(i=0;i<8;i++) {
|
||||||
rnd = Math.floor(Math.random() * chars.length);
|
rnd = Math.floor(Math.random() * chars.length);
|
||||||
pass += chars.substring(rnd,rnd + 1);
|
pass += chars.substring(rnd,rnd + 1);
|
||||||
|
Loading…
Reference in New Issue
Block a user