From 43219862044acadbe147684bfc44592ca89d2d1f Mon Sep 17 00:00:00 2001 From: philipp Date: Tue, 24 Oct 2023 13:14:26 +0200 Subject: [PATCH] debug --- src/tera/mod.rs | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/tera/mod.rs b/src/tera/mod.rs index a191cb4..c598c4f 100644 --- a/src/tera/mod.rs +++ b/src/tera/mod.rs @@ -28,7 +28,7 @@ mod log; mod misc; mod stat; -#[derive(FromForm)] +#[derive(FromForm, Debug)] struct LoginForm<'r> { name: &'r str, password: &'r str, @@ -36,6 +36,7 @@ struct LoginForm<'r> { #[post("/", data = "")] async fn wikiauth(db: &State, login: Form>) -> String { + println!("{login:?}"); match User::login(db, login.name, login.password).await { Ok(_) => "SUCC".into(), Err(_) => "FAIL".into(),