diff --git a/firstrun.py b/firstrun.py index 2c83922..3c0f463 100644 --- a/firstrun.py +++ b/firstrun.py @@ -4,14 +4,16 @@ from users.models import Profile,Agency import random import string -def randomStringwithDigitsAndSymbols(stringLength=10): - """Generate a random string of letters, digits and special characters """ - - password_characters = string.ascii_letters + string.digits + string.punctuation - return ''.join(random.choice(password_characters) for i in range(stringLength)) +password_characters = string.ascii_letters + string.digits + string.punctuation username = "root" -password = randomStringwithDigitsAndSymbols(20) +password = "" + +i = 0 +while(i < 20): + password += random.choice(password_characters) + i++ + print("USERNAME: " + username) print("PASSWORD: " + password) ag=Agency() diff --git a/users/__pycache__/models.cpython-38.pyc b/users/__pycache__/models.cpython-38.pyc index afba010..f9dbfd5 100644 Binary files a/users/__pycache__/models.cpython-38.pyc and b/users/__pycache__/models.cpython-38.pyc differ diff --git a/users/__pycache__/signals.cpython-38.pyc b/users/__pycache__/signals.cpython-38.pyc index 614f74e..b6b447c 100644 Binary files a/users/__pycache__/signals.cpython-38.pyc and b/users/__pycache__/signals.cpython-38.pyc differ