Skip to content

Commit

Permalink
fix: [role_manager] add password characters
Browse files Browse the repository at this point in the history
  • Loading branch information
Terrtia committed Jul 5, 2019
1 parent add0a95 commit 8483ec8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion var/www/modules/Role_Manager.py
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ def decorated_view(*args, **kwargs):
###############################################################
###############################################################

def gen_password(length=30, charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789!@#$%^&*()"):
def gen_password(length=30, charset="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_!@#$%^&*()"):
random_bytes = os.urandom(length)
len_charset = len(charset)
indices = [int(len_charset * (byte / 256.0)) for byte in random_bytes]
Expand Down

0 comments on commit 8483ec8

Please sign in to comment.