diff --git a/openedx/core/djangoapps/user_api/accounts/utils.py b/openedx/core/djangoapps/user_api/accounts/utils.py index 1d8b59b7bc..fdc9bf7b0d 100644 --- a/openedx/core/djangoapps/user_api/accounts/utils.py +++ b/openedx/core/djangoapps/user_api/accounts/utils.py @@ -189,7 +189,7 @@ def generate_password(length=12, chars=string.ascii_letters + string.digits): password = '' password += choice(string.digits) - password += choice(string.letters) + password += choice(string.ascii_letters) password += ''.join([choice(chars) for _i in range(length - 2)]) return password