aboutsummaryrefslogtreecommitdiff
path: root/Timeline/Migrations
diff options
context:
space:
mode:
author杨宇千 <crupest@outlook.com>2019-08-04 21:35:04 +0800
committerGitHub <noreply@github.com>2019-08-04 21:35:04 +0800
commit52f5d2724d74ddb37141d8dfcc8384c0c8ce0e24 (patch)
treed1c9c7b51353b67b47bb4cd89aa82754ef0a1234 /Timeline/Migrations
parentc07297373df08bd605f5bec96020192bb6dec151 (diff)
parentd1ebb882e8484c80eca86cac80602fb4c1401834 (diff)
downloadtimeline-52f5d2724d74ddb37141d8dfcc8384c0c8ce0e24.tar.gz
timeline-52f5d2724d74ddb37141d8dfcc8384c0c8ce0e24.tar.bz2
timeline-52f5d2724d74ddb37141d8dfcc8384c0c8ce0e24.zip
Merge pull request #34 from crupest/token-time
Set token expired time and write unit tests.
Diffstat (limited to 'Timeline/Migrations')
-rw-r--r--Timeline/Migrations/20190412144150_AddAdminUser.cs2
1 files changed, 1 insertions, 1 deletions
diff --git a/Timeline/Migrations/20190412144150_AddAdminUser.cs b/Timeline/Migrations/20190412144150_AddAdminUser.cs
index 9fac05ff..1b3f14b7 100644
--- a/Timeline/Migrations/20190412144150_AddAdminUser.cs
+++ b/Timeline/Migrations/20190412144150_AddAdminUser.cs
@@ -8,7 +8,7 @@ namespace Timeline.Migrations
protected override void Up(MigrationBuilder migrationBuilder)
{
migrationBuilder.InsertData("user", new string[] { "name", "password", "roles" },
- new string[] { "crupest", new PasswordService(null).HashPassword("yang0101"), "user,admin" });
+ new string[] { "crupest", new PasswordService().HashPassword("yang0101"), "user,admin" });
}
protected override void Down(MigrationBuilder migrationBuilder)