Skip to content

Commit 7afef1a

Browse files
Merge pull request adeyosemanputra#222 from timothywarner/fix-cryptographic-lab
Fix cryptographic lab by populating CF_user table
2 parents 59d1869 + a2ef7e3 commit 7afef1a

2 files changed

Lines changed: 12 additions & 0 deletions

File tree

introduction/migrations/0017_cf_user.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,4 +18,10 @@ class Migration(migrations.Migration):
1818
('password', models.CharField(max_length=200)),
1919
],
2020
),
21+
migrations.RunSQL(
22+
"INSERT INTO introduction_cf_user (username, password) VALUES "
23+
"('alex', '9d6edee6ce9312981084bd98eb3751ee'),"
24+
"('admin', 'c93ccd78b2076528346216b3b2f701e6'),"
25+
"('rupak', '5ee3547adb4481902349bdd0f2ffba93');"
26+
),
2127
]

introduction/migrations/0018_cf_user_password2.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -16,4 +16,10 @@ class Migration(migrations.Migration):
1616
field=models.CharField(default='ok', max_length=64),
1717
preserve_default=False,
1818
),
19+
migrations.RunSQL(
20+
"INSERT INTO introduction_cf_user (username, password, password2) VALUES "
21+
"('alex', '9d6edee6ce9312981084bd98eb3751ee', '2a280ba4ff0f8c763c5b0606f40effc3319dbc4c91d4361a39990292d4b7b0cd'),"
22+
"('admin', 'c93ccd78b2076528346216b3b2f701e6', 'd953b4a47ce307fcb8b1b85fc6a0d34aea5585b6ad9188beb94c1eea9bbb5c7a'),"
23+
"('rupak', '5ee3547adb4481902349bdd0f2ffba93', 'c17cde8d179a37cad4bd93e55355fdf240eb52d585e428c1cdfecc68123e192a');"
24+
),
1925
]

0 commit comments

Comments
 (0)