importusers: do not add md5 hash prefix

This commit is contained in:
Daan Sprenkels
2018-02-05 20:09:05 +01:00
parent 255cf33d85
commit 8435291bcd

View File

@ -43,7 +43,7 @@ class Command(BaseCommand):
user, created = User.objects.get_or_create(username=username)
user.name = import_user[2].decode('utf-8', errors='ignore').strip()
user.email = user.username + '@science.ru.nl'
user.password = 'md5$$' + import_user[3].decode('utf-8', errors='strict')
user.password = import_user[3].decode('utf-8', errors='strict')
user.queue = get_first_queue()
user.study = import_user[5].decode('utf-8', errors='ignore').strip()
user.save()