Skip to content
Snippets Groups Projects
Verified Commit cc49e32b authored by Timm Fitschen's avatar Timm Fitschen
Browse files

Change function name get_password->generate_password

parent fe958fa0
Branches
Tags
1 merge request!37ENH: add function that generates passwords
Pipeline #17041 passed
...@@ -111,7 +111,7 @@ def get_server_property(key): ...@@ -111,7 +111,7 @@ def get_server_property(key):
return get_server_properties()[key] return get_server_properties()[key]
def get_password(length: int): def generate_password(length: int):
""" creates a random password that fulfills the security requirements """ """ creates a random password that fulfills the security requirements """
sample_letters = string.ascii_letters + string.digits + "!#$%*+-/:;?_" sample_letters = string.ascii_letters + string.digits + "!#$%*+-/:;?_"
password = ''.join((random.choice(sample_letters) for i in range(length))) password = ''.join((random.choice(sample_letters) for i in range(length)))
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment