From 674e3fd253f530823ff554ced74b0d3987bafa65 Mon Sep 17 00:00:00 2001 From: Tanner Collin Date: Sat, 17 Jul 2021 02:59:12 +0000 Subject: [PATCH] Set test user's passwords correctly --- server/server/api/management/commands/seed.py | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/server/server/api/management/commands/seed.py b/server/server/api/management/commands/seed.py index b8035b9..b0e4020 100644 --- a/server/server/api/management/commands/seed.py +++ b/server/server/api/management/commands/seed.py @@ -13,9 +13,15 @@ class Command(BaseCommand): self.stdout.write('Clearing and seeding database...') User.objects.all().delete() - elijah = User.objects.create(username='elijah', email='elijah@westwinds.io', password='toffee15') - ievgen = User.objects.create(username='ievgen', email='ievgen@westwinds.io', password='toffee15') - tanner = User.objects.create(username='tanner', email='tanner@westwinds.io', password='toffee15') + elijah = User.objects.create(username='elijah', email='elijah@westwinds.io') + elijah.set_password('toffee15') + elijah.save() + ievgen = User.objects.create(username='ievgen', email='ievgen@westwinds.io') + ievgen.set_password('toffee15') + ievgen.save() + tanner = User.objects.create(username='tanner', email='tanner@westwinds.io') + tanner.set_password('toffee15') + tanner.save() self.stdout.write(str(User.objects.all())) self.stdout.write('{} users created!'.format(User.objects.count()))