Skip to content

Commit

Permalink
Merge pull request #222 from timothywarner/fix-cryptographic-lab
Browse files Browse the repository at this point in the history
Fix cryptographic lab by populating CF_user table
  • Loading branch information
adeyosemanputra authored Aug 29, 2024
2 parents 59d1869 + a2ef7e3 commit 7afef1a
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 0 deletions.
6 changes: 6 additions & 0 deletions introduction/migrations/0017_cf_user.py
Original file line number Diff line number Diff line change
Expand Up @@ -18,4 +18,10 @@ class Migration(migrations.Migration):
('password', models.CharField(max_length=200)),
],
),
migrations.RunSQL(
"INSERT INTO introduction_cf_user (username, password) VALUES "
"('alex', '9d6edee6ce9312981084bd98eb3751ee'),"
"('admin', 'c93ccd78b2076528346216b3b2f701e6'),"
"('rupak', '5ee3547adb4481902349bdd0f2ffba93');"
),
]
6 changes: 6 additions & 0 deletions introduction/migrations/0018_cf_user_password2.py
Original file line number Diff line number Diff line change
Expand Up @@ -16,4 +16,10 @@ class Migration(migrations.Migration):
field=models.CharField(default='ok', max_length=64),
preserve_default=False,
),
migrations.RunSQL(
"INSERT INTO introduction_cf_user (username, password, password2) VALUES "
"('alex', '9d6edee6ce9312981084bd98eb3751ee', '2a280ba4ff0f8c763c5b0606f40effc3319dbc4c91d4361a39990292d4b7b0cd'),"
"('admin', 'c93ccd78b2076528346216b3b2f701e6', 'd953b4a47ce307fcb8b1b85fc6a0d34aea5585b6ad9188beb94c1eea9bbb5c7a'),"
"('rupak', '5ee3547adb4481902349bdd0f2ffba93', 'c17cde8d179a37cad4bd93e55355fdf240eb52d585e428c1cdfecc68123e192a');"
),
]

0 comments on commit 7afef1a

Please sign in to comment.