Generating 16 chars password for users

This commit is contained in:
myvesta 2022-04-25 21:23:02 +02:00 committed by GitHub
parent 547d5f0c5b
commit 475b7eac6b
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
3 changed files with 3 additions and 3 deletions

View file

@ -152,7 +152,7 @@ generate_password() {
matrix=0123456789ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz
fi
if [ -z "$lenght" ]; then
lenght=10
lenght=16
fi
i=1
while [ $i -le $lenght ]; do

View file

@ -7,7 +7,7 @@ $(function() {
randomString = function() {
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
var string_length = 10;
var string_length = 16;
var randomstring = '';
for (var i = 0; i < string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);

View file

@ -1,6 +1,6 @@
function randomString() {
var chars = '0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz';
var string_length = 10;
var string_length = 16;
var randomstring = '';
for (var i = 0; i < string_length; i++) {
var rnum = Math.floor(Math.random() * chars.length);