diff --git a/migrations/2018-10-10-134403_create user table/up.sql b/migrations/2018-10-10-134403_create user table/up.sql index 48eb3b0..a2966e8 100644 --- a/migrations/2018-10-10-134403_create user table/up.sql +++ b/migrations/2018-10-10-134403_create user table/up.sql @@ -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'); diff --git a/src/routers/admin.rs b/src/routers/admin.rs index 2a559fe..d088be5 100644 --- a/src/routers/admin.rs +++ b/src/routers/admin.rs @@ -39,4 +39,4 @@ fn admin_authentication(user: Form, conn: DbConn, mut cookies: Cookie cookies.add_private(Cookie::new("LOG_ADMIN", "1")); Ok(Redirect::to("/admin/login")) -} \ No newline at end of file +}