Commit ·
4d7c3f3
1
Parent(s): ce96034
fix: Remove committed default credentials from seed data.
Browse files5 unmodified lines678910111213141516171819202122232421 unmodified lines464748495051525 unmodified lines{"name": "Customer","email": "customer@mail.com","password": "customer@mail.com","role_key": "customer",},{"name": "Officer","email": "officer@mail.com","password": "officer@mail.com","role_key": "officer",},{"name": "Admin","email": "admin@mail.com","password": "admin@mail.com","role_key": "admin",},]21 unmodified linesUser.objects.create(name=item["name"],email=item["email"],password=make_password(item["password"]),role=role,)5 unmodified lines678910111213141516171819202121 unmodified lines434445464748495 unmodified lines{"name": "Customer","email": "customer@mail.com","role_key": "customer",},{"name": "Officer","email": "officer@mail.com","role_key": "officer",},{"name": "Admin","email": "admin@mail.com","role_key": "admin",},]21 unmodified linesUser.objects.create(name=item["name"],email=item["email"],password=make_password(None),role=role,)
apps/users/migrations/0002_seed_users.py+1-4