fix: using encrypted password in database migration file.
This commit is contained in:
parent
461744c8a4
commit
d9d9484c0b
@ -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');
|
||||
|
@ -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"))
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user