Skip to content

armgit / wger

Public Imported from GitHub
0

Self hosted FLOSS fitness/workout, nutrition and weight tracker

Add lower case L to blacklist for passwords

Roland Geiderb4c2c430b329
diff --git a/wger/utils/helpers.py b/wger/utils/helpers.py
index 6862b946c..c61a36e93 100644
--- a/wger/utils/helpers.py
+++ b/wger/utils/helpers.py
@@ -121,7 +121,7 @@ def password_generator(length=15):
'''
chars = string.ascii_letters + string.digits
random.seed = (os.urandom(1024))
- for char in ('I', '1', 'O', '0', 'o'):
+ for char in ('I', '1', 'l', 'O', '0', 'o'):
chars = chars.replace(char, '')
return ''.join(random.choice(chars) for i in range(length))