diff --git a/authentik/lib/generators.py b/authentik/lib/generators.py index b0f1303d0..14a7b2f2b 100644 --- a/authentik/lib/generators.py +++ b/authentik/lib/generators.py @@ -13,6 +13,6 @@ def generate_key(length=128): """Generate a suitable client secret""" rand = SystemRandom() return "".join( - rand.choice(string.ascii_letters + string.digits + string.punctuation) + rand.choice(string.ascii_letters + string.digits + string.punctuation + string.punctuation) for x in range(length) )