fix: using encrypted password in database migration file.

This commit is contained in:
Kilerd Chan 2018-10-14 10:23:26 +08:00
parent 461744c8a4
commit d9d9484c0b
2 changed files with 2 additions and 2 deletions

View File

@ -8,4 +8,4 @@ CREATE TABLE users (
PRIMARY KEY ("id")
);
INSERT INTO "public"."users"("id", "username", "password", "create_at", "last_login_at") VALUES(1, 'admin', 'admin', '2018-10-10 14:01:35', '2018-10-10 14:01:35');
INSERT INTO "public"."users"("id", "username", "password", "create_at", "last_login_at") VALUES(1, 'admin', 'c0067d4af4e87f00dbac63b6156828237059172d1bbeac67427345d6a9fda484', '2018-10-10 14:01:35', '2018-10-10 14:01:35');

View File

@ -39,4 +39,4 @@ fn admin_authentication(user: Form<LoginForm>, conn: DbConn, mut cookies: Cookie
cookies.add_private(Cookie::new("LOG_ADMIN", "1"));
Ok(Redirect::to("/admin/login"))
}
}