See #248: ensure invitation codes are case insensitive

This commit is contained in:
Eliot Berriot 2018-06-21 19:41:40 +02:00
parent 7cfa61292a
commit 46ecc3f103
No known key found for this signature in database
GPG key ID: DD6965E2476E5C27
4 changed files with 4 additions and 4 deletions

View file

@ -152,7 +152,7 @@ class User(AbstractUser):
def generate_code(length=10):
return "".join(
random.SystemRandom().choice(string.ascii_lowercase) for _ in range(length)
random.SystemRandom().choice(string.ascii_uppercase) for _ in range(length)
)