mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-11 09:32:22 +01:00
importusers: do not add md5 hash prefix
This commit is contained in:
@ -43,7 +43,7 @@ class Command(BaseCommand):
|
|||||||
user, created = User.objects.get_or_create(username=username)
|
user, created = User.objects.get_or_create(username=username)
|
||||||
user.name = import_user[2].decode('utf-8', errors='ignore').strip()
|
user.name = import_user[2].decode('utf-8', errors='ignore').strip()
|
||||||
user.email = user.username + '@science.ru.nl'
|
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.queue = get_first_queue()
|
||||||
user.study = import_user[5].decode('utf-8', errors='ignore').strip()
|
user.study = import_user[5].decode('utf-8', errors='ignore').strip()
|
||||||
user.save()
|
user.save()
|
||||||
|
|||||||
Reference in New Issue
Block a user