mirror of
https://gitlab.science.ru.nl/technicie/MarietjeDjango.git
synced 2025-12-09 20:02:20 +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.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()
|
||||
|
||||
Reference in New Issue
Block a user