Start an actual design

This commit is contained in:
Bat
2018-05-10 21:31:52 +01:00
parent d3319493d9
commit a74215ef07
9 changed files with 165 additions and 39 deletions
+4 -2
View File
@@ -9,8 +9,10 @@ use db_conn::DbConn;
use models::users::{User, AUTH_COOKIE};
#[get("/login")]
fn new() -> Template {
Template::render("session/login", HashMap::<String, String>::new())
fn new(user: Option<User>) -> Template {
Template::render("session/login", json!({
"account": user
}))
}
#[derive(FromForm)]