diff --git a/src/routes/session.rs b/src/routes/session.rs index e948d8e0..655fc693 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,