diff --git a/realms/modules/auth/ldap/models.py b/realms/modules/auth/ldap/models.py index cd605c2..c1c7176 100644 --- a/realms/modules/auth/ldap/models.py +++ b/realms/modules/auth/ldap/models.py @@ -10,7 +10,7 @@ users = {} @ldap.save_user def save_user(username, userdata): - user = User(userdata.get('username'), userdata.get('email')) + user = User(username, userdata.get('email')) users[user.id] = user return user