From e5c1b3259d425b57ff5cd49edb60f5b56c5dcc11 Mon Sep 17 00:00:00 2001 From: Bat Date: Fri, 6 Jul 2018 21:59:17 +0200 Subject: [PATCH] Make LoginForm serializable --- src/routes/session.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/routes/session.rs b/src/routes/session.rs index e948d8e..655fc69 100644 --- a/src/routes/session.rs +++ b/src/routes/session.rs @@ -36,7 +36,7 @@ fn new_message(user: Option, message: Message) -> Template { } -#[derive(FromForm, Validate)] +#[derive(FromForm, Validate, Serialize)] struct LoginForm { #[validate(length(min = "1"))] email_or_name: String,