We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 716af46 commit 457d2d2Copy full SHA for 457d2d2
wsgi/openshift/openshiftlibs.py
@@ -63,10 +63,12 @@ def make_secure_key(key_info):
63
key = key_info['variable']
64
original = key_info['original']
65
66
- chars = '0123456789'
67
- chars += 'abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ'
68
- chars += '!@#%^&*()'
69
- chars += '-_ []{}<>~`+=,.;:/?|'
+ # These are the legal password characters
+ # as per the Django source code
+ # (django/contrib/auth/models.py)
+ chars = 'abcdefghjkmnpqrstuvwxyz'
70
+ chars += 'ABCDEFGHJKLMNPQRSTUVWXYZ'
71
+ chars += '23456789'
72
73
# Use the hash to seed the RNG
74
random.seed(int("0x" + hashcode[:8], 0))
0 commit comments