Allow take over of passwords

This commit is contained in:
Oliver Falk
2019-01-08 12:28:54 +01:00
parent e554537c40
commit d0f15eaca5
2 changed files with 6 additions and 0 deletions

View File

@@ -37,6 +37,8 @@ for file in os.listdir(PATH):
items = libravatar_read_gzdata(fh.read())
print('Adding user "%s"' % items['username'])
(user, created) = User.objects.get_or_create(username=items['username'])
user.password = items['password']
user.save()
saved_photos = {}
for photo in items['photos']: